Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishab87 committed Dec 20, 2024
1 parent c1c553d commit 2ed3793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ p5.prototype._onkeyup = function(e) {
this._setProperty('_lastKeyCodePressed', this._keyCode);
this._downKeys[e.which] = false;

if (e.which === 91 || e.which === 93) { // Meta key codes
if (e.key === 'Meta') { // Meta key codes
// When meta key is released, clear all keys pressed with it
if (this._metaKeys) {
this._metaKeys.forEach(key => {
Expand Down

0 comments on commit 2ed3793

Please sign in to comment.