From 1908cbba7db1b99db070498e26b508d3dc92cf48 Mon Sep 17 00:00:00 2001 From: Wesley Reitzfeld Date: Mon, 13 Apr 2020 22:21:37 -0400 Subject: [PATCH] Fix detection of Option + Space key on macOS The Option + Space key combination on macOS results in a non-breaking space (U+00A0). This resulted in the modifiers not correctly detecting the release of the space key. --- src/event/Key.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event/Key.js b/src/event/Key.js index be425b4211..20a2b83441 100644 --- a/src/event/Key.js +++ b/src/event/Key.js @@ -19,6 +19,7 @@ var Key = new function() { // Unify different key identifier naming schemes, e.g. on Gecko, IE: '\t': 'tab', ' ': 'space', + '\xA0': 'space', // Option + Space on macOS = non-breaking space. '\b': 'backspace', '\x7f': 'delete', 'Spacebar': 'space',