Skip to content

Commit

Permalink
fix(QSelect): avoid keyboard reacting when macOS Command key is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Nov 14, 2022
1 parent e82d733 commit a23cfaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/components/select/QSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,9 @@ export default Vue.extend({
this.useInput !== true &&
e.key !== void 0 &&
e.key.length === 1 && // printable char
e.altKey === e.ctrlKey && // not kbd shortcut
e.altKey === false && // not kbd shortcut
e.ctrlKey === false && // not kbd shortcut
e.metaKey === false && // not kbd shortcut, especially on macOS with Command key
(e.keyCode !== 32 || this.searchBuffer.length > 0) // space in middle of search
) {
this.menu !== true && this.showPopup(e)
Expand Down

0 comments on commit a23cfaf

Please sign in to comment.