Skip to content

Commit

Permalink
Open recipe-ref popup only on hash input
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
  • Loading branch information
seyfeb committed Mar 7, 2021
1 parent b994f96 commit 4989dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/components/EditInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 4989dd6

Please sign in to comment.