diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a8c4a587..c7e26ffa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ [#653](https://github.com/nextcloud/cookbook/pull/653) @seyfeb - Fix empty error message upon import [#647](https://github.com/nextcloud/cookbook/pull/647) @christianlupus +- Really only show recipe-reference popup on '#' + [#676](https://github.com/nextcloud/cookbook/pull/676) @seyfeb ## 0.8.4 - 2021-03-08 diff --git a/src/components/EditInputGroup.vue b/src/components/EditInputGroup.vue index b4b8f2146..b83422829 100644 --- a/src/components/EditInputGroup.vue +++ b/src/components/EditInputGroup.vue @@ -227,7 +227,7 @@ export default { if ( e.keyCode === 13 || e.keyCode === 10 || - (this.referencePopupEnabled && e.keyCode === 51) + (this.referencePopupEnabled && e.key === "#") ) { e.preventDefault() const $li = e.currentTarget.closest("li") @@ -251,7 +251,7 @@ export default { .getElementsByTagName("input")[0] .focus() } - } else if (this.referencePopupEnabled && e.keyCode === 51) { + } else if (this.referencePopupEnabled && e.key === "#") { e.preventDefault() const elm = this.$refs["list-field"][$pressed_li_index] // Check if the letter before the hash