From 0ce695577c699b6829b1f8c4a223b71904bfcb12 Mon Sep 17 00:00:00 2001 From: Salamandar <6552989+Salamandar@users.noreply.github.com> Date: Mon, 19 Sep 2022 10:21:45 +0200 Subject: [PATCH] Fix shortcuts for non-qwerty keyboard layouts (revert #12892) (#13190) --- src/state/quick-bar-mixin.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/state/quick-bar-mixin.ts b/src/state/quick-bar-mixin.ts index b359c70e7f..8882cbcd3b 100644 --- a/src/state/quick-bar-mixin.ts +++ b/src/state/quick-bar-mixin.ts @@ -48,6 +48,11 @@ export default >(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),