|
@@ -144,7 +144,12 @@ const KeyboardShortcut = {
|
144
|
144
|
* @returns {string} e.key or something close if not supported
|
145
|
145
|
*/
|
146
|
146
|
_getKeyboardKey(e) {
|
147
|
|
- if (typeof e.key === 'string') {
|
|
147
|
+ // If e.key is a string, then it is assumed it already plainly states
|
|
148
|
+ // the key pressed. This may not be true in all cases, such as with Edge
|
|
149
|
+ // and "?", when the browser cannot properly map a key press event to a
|
|
150
|
+ // keyboard key. To be safe, when a key is "Unidentified" it must be
|
|
151
|
+ // further analyzed by jitsi to a key using e.which.
|
|
152
|
+ if (typeof e.key === 'string' && e.key !== 'Unidentified') {
|
148
|
153
|
return e.key;
|
149
|
154
|
}
|
150
|
155
|
if (e.type === 'keypress'
|