From 2ed379332ec6acad31e21fab7d8c7293db45f3e4 Mon Sep 17 00:00:00 2001 From: Rishab Kumar Jha Date: Fri, 20 Dec 2024 11:13:34 +0530 Subject: [PATCH] minor change --- src/events/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/keyboard.js b/src/events/keyboard.js index 34b1f231b9..f6e3b04703 100644 --- a/src/events/keyboard.js +++ b/src/events/keyboard.js @@ -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 => {