We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c553d commit 2ed3793Copy full SHA for 2ed3793
src/events/keyboard.js
@@ -631,7 +631,7 @@ p5.prototype._onkeyup = function(e) {
631
this._setProperty('_lastKeyCodePressed', this._keyCode);
632
this._downKeys[e.which] = false;
633
634
- if (e.which === 91 || e.which === 93) { // Meta key codes
+ if (e.key === 'Meta') { // Meta key codes
635
// When meta key is released, clear all keys pressed with it
636
if (this._metaKeys) {
637
this._metaKeys.forEach(key => {
0 commit comments