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

This commit is contained in:
Michael Telatynski 2020-09-18 12:32:33 +01:00
parent ee4a5b2208
commit 780aea1a36

View file

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