Skip to content

Commit

Permalink
Fix for meta key not registering on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
e9gille committed Aug 15, 2023
1 parent f517710 commit 9984992
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prf_shc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
const be = x.browserEvent;
const isMeta = meta.has(kn);
const s = [
be.ctrlKey ? 'Ctrl' : '',
be.shiftKey && (be.type === 'keydown' || be.which) ? 'Shift' : '',
x.ctrlKey ? 'Ctrl' : '',
x.shiftKey && (be.type === 'keydown' || be.which) ? 'Shift' : '',
// eslint-disable-next-line no-nested-ternary
be.altKey ? (D.mac ? 'Option' : 'Alt') : '',
x.altKey ? (D.mac ? 'Option' : 'Alt') : '',
// eslint-disable-next-line no-nested-ternary
be.metaKey ? (D.mac ? 'Cmd' : (D.win ? 'Win' : 'Meta')) : '',
x.metaKey ? (D.mac ? 'Cmd' : (D.win ? 'Win' : 'Meta')) : '',
isMeta ? '' : D.keyMap.labels[kn],
].filter((k) => k).join('+');
me.setValue(s || 'Press keystroke...');
Expand Down

0 comments on commit 9984992

Please sign in to comment.