mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 04:06:35 +00:00
parent
50b67751d9
commit
0ce695577c
@ -48,6 +48,11 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
|||||||
|
|
||||||
private _registerShortcut() {
|
private _registerShortcut() {
|
||||||
tinykeys(window, {
|
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),
|
KeyE: (ev) => this._showQuickBar(ev),
|
||||||
KeyC: (ev) => this._showQuickBar(ev, true),
|
KeyC: (ev) => this._showQuickBar(ev, true),
|
||||||
KeyM: (ev) => this._createMyLink(ev),
|
KeyM: (ev) => this._createMyLink(ev),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user