Skip to content

Commit

Permalink
Prevent typing in 'input' from triggering modal open
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Jan 3, 2025
1 parent 1c3728e commit a7d65a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ export default defineComponent({
},

handleKeyboardShortcuts: function (event) {
if (event.shiftKey && event.key === '?') {
// ignore user typing in HTML `input` elements
if (event.shiftKey && event.key === '?' && event.target.tagName !== 'INPUT') {
this.$store.commit('setIsKeyboardShortcutPromptShown', !this.isKeyboardShortcutPromptShown)
}

Expand Down

0 comments on commit a7d65a9

Please sign in to comment.