Merge pull request #5233 from matrix-org/t3chguy/fix/15231

Fix Cmd/Ctrl+Shift+U for File Upload
pull/21833/head
Michael Telatynski 2020-09-18 18:02:58 +01:00 committed by GitHub
commit 4d34e40680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -672,9 +672,10 @@ 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" }, true);
handled = true; handled = true;
} }
break; break;