Mac sends lowercase event.key even when holding Shift unlike Windows

pull/21833/head
Michael Telatynski 2020-09-18 12:32:33 +01:00
parent ee4a5b2208
commit 780aea1a36
1 changed files with 1 additions and 0 deletions

View File

@ -672,6 +672,7 @@ export default class RoomView extends React.Component<IProps, IState> {
handled = true; handled = true;
} }
break; break;
case Key.U: // Mac returns lowercase
case Key.U.toUpperCase(): case Key.U.toUpperCase():
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) { if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
dis.dispatch({ action: "upload_file" }); dis.dispatch({ action: "upload_file" });