Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
ShortcutsApi
Interface ShortcutsApi
interface
ShortcutsApi
{
disable
(
action
:
string
)
:
void
;
getBindings
()
:
Record
<
string
,
string
[]
>
;
onChange
(
listener
:
()
=>
void
)
:
()
=>
void
;
rebind
(
action
:
string
,
bindings
:
string
|
string
[]
|
null
)
:
void
;
reset
(
action
?:
string
)
:
void
;
}
Index
Methods
disable
get
Bindings
on
Change
rebind
reset
Methods
disable
disable
(
action
:
string
)
:
void
Parameters
action
:
string
Returns
void
get
Bindings
getBindings
()
:
Record
<
string
,
string
[]
>
Returns
Record
<
string
,
string
[]
>
on
Change
onChange
(
listener
:
()
=>
void
)
:
()
=>
void
Calls
listener
after a binding changes. Returns unsubscribe.
Parameters
listener
:
()
=>
void
Returns
()
=>
void
rebind
rebind
(
action
:
string
,
bindings
:
string
|
string
[]
|
null
)
:
void
Parameters
action
:
string
bindings
:
string
|
string
[]
|
null
Returns
void
reset
reset
(
action
?:
string
)
:
void
Parameters
Optional
action
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
disable
get
Bindings
on
Change
rebind
reset
Field Notes home
Docs
Playground
Field Notes
Loading...
Calls
listenerafter a binding changes. Returns unsubscribe.