Skip to content

Commit 2ed3793

Browse files
committed
minor change
1 parent c1c553d commit 2ed3793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/keyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ p5.prototype._onkeyup = function(e) {
631631
this._setProperty('_lastKeyCodePressed', this._keyCode);
632632
this._downKeys[e.which] = false;
633633

634-
if (e.which === 91 || e.which === 93) { // Meta key codes
634+
if (e.key === 'Meta') { // Meta key codes
635635
// When meta key is released, clear all keys pressed with it
636636
if (this._metaKeys) {
637637
this._metaKeys.forEach(key => {

0 commit comments

Comments
 (0)