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 <[email protected]>
  • Loading branch information
seyfeb committed Apr 6, 2021
1 parent b4a7ce1 commit 0a42ec8
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 @@ -15,6 +15,8 @@
[#668](https://github.com/nextcloud/cookbook/pull/668) @christianlupus
- Fix version of `@nextcloud/capabilities` to `1.0.2`
[#672](https://github.com/nextcloud/cookbook/pull/672) @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 0a42ec8

Please sign in to comment.