-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use s to trigger search instead of Cmd + K
- Loading branch information
Showing
5 changed files
with
33 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import plinth/browser/event.{type Event} | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "scrollTo") | ||
pub fn scroll_to(element id: String) -> fn(dispatch) -> Nil | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "subscribeIsMobile") | ||
pub fn suscribe_is_mobile(callback: fn(Bool) -> Nil) -> Nil | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "subscribeFocus") | ||
pub fn subscribe_focus(callback: fn(String) -> Nil) -> Nil | ||
pub fn subscribe_focus(callback: fn(Event) -> Nil) -> Nil | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "focus") | ||
pub fn focus(on id: String) -> Nil | ||
pub fn focus(on id: String, event event: a) -> Nil | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "isActive") | ||
pub fn is_active(element id: String) -> Bool | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "unfocus") | ||
pub fn unfocus() -> Nil | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "isMac") | ||
pub fn is_mac() -> Bool | ||
|
||
@external(javascript, "../gloogle.ffi.mjs", "updateTitle") | ||
pub fn update_title(title: String) -> Nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters