Skip to content

Commit acd06ee

Browse files
committed
Showing recipe-ref popup in input groups on # (keyboard-layout independent)
Signed-off-by: Sebastian Fey <[email protected]>
1 parent d24708e commit acd06ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
[#653](https://github.com./nextcloud/cookbook/pull/653) @seyfeb
88
- Fix empty error message upon import
99
[#647](https://github.com./nextcloud/cookbook/pull/647) @christianlupus
10+
- Really only show recipe-reference popup on '#'
11+
[#676](https://github.com./nextcloud/cookbook/pull/676) @seyfeb
1012

1113
## 0.8.4 - 2021-03-08
1214

src/components/EditInputGroup.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export default {
227227
if (
228228
e.keyCode === 13 ||
229229
e.keyCode === 10 ||
230-
(this.referencePopupEnabled && e.keyCode === 51)
230+
(this.referencePopupEnabled && e.key === "#")
231231
) {
232232
e.preventDefault()
233233
const $li = e.currentTarget.closest("li")
@@ -251,7 +251,7 @@ export default {
251251
.getElementsByTagName("input")[0]
252252
.focus()
253253
}
254-
} else if (this.referencePopupEnabled && e.keyCode === 51) {
254+
} else if (this.referencePopupEnabled && e.key === "#") {
255255
e.preventDefault()
256256
const elm = this.$refs["list-field"][$pressed_li_index]
257257
// Check if the letter before the hash

0 commit comments

Comments
 (0)