Skip to content

Commit

Permalink
Showing recipe-ref popup in input groups on # (keyboard-layout indepe…
Browse files Browse the repository at this point in the history
…ndent)

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
  • Loading branch information
seyfeb committed Apr 6, 2021
1 parent d24708e commit acd06ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/components/EditInputGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit acd06ee

Please sign in to comment.