mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
parent
50b67751d9
commit
0ce695577c
@ -48,6 +48,11 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
||||
|
||||
private _registerShortcut() {
|
||||
tinykeys(window, {
|
||||
// Those are for latin keyboards that have e, c, m keys
|
||||
e: (ev) => this._showQuickBar(ev),
|
||||
c: (ev) => this._showQuickBar(ev, true),
|
||||
m: (ev) => this._createMyLink(ev),
|
||||
// Those are fallbacks for non-latin keyboards that don't have e, c, m keys (qwerty-based shortcuts)
|
||||
KeyE: (ev) => this._showQuickBar(ev),
|
||||
KeyC: (ev) => this._showQuickBar(ev, true),
|
||||
KeyM: (ev) => this._createMyLink(ev),
|
||||
|
Loading…
x
Reference in New Issue
Block a user