From 4989dd6e3371c30544cb521016b2de64f07c3ed9 Mon Sep 17 00:00:00 2001 From: Sebastian Fey Date: Sun, 7 Mar 2021 14:42:58 +0100 Subject: [PATCH] Open recipe-ref popup only on hash input Signed-off-by: Sebastian Fey --- CHANGELOG.md | 2 ++ src/components/EditInputField.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6290c866f..ba8350f47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ [#642](https://github.com/nextcloud/cookbook/pull/642) @seyfeb - Missing translation [#644](https://github.com/nextcloud/cookbook/pull/644) @seyfeb +- Recipe-reference popup being shown on the wrong input depending on keyboard layout + [#648](https://github.com/nextcloud/cookbook/pull/648) @seyfeb ## 0.8.3 - 2021-03-03 diff --git a/src/components/EditInputField.vue b/src/components/EditInputField.vue index afe5fed1b..f9fae7d44 100644 --- a/src/components/EditInputField.vue +++ b/src/components/EditInputField.vue @@ -70,7 +70,7 @@ export default { */ keyPressed(e) { // Using keyup for trigger will prevent repeat triggering if key is held down - if (this.referencePopupEnabled && e.keyCode === 51) { + if (this.referencePopupEnabled && e.key === "#") { e.preventDefault() // Check if the letter before the hash if (this.fieldType === "markdown") {