mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Make the upload_file dispatch synchronous to make Firefox happy about it
This commit is contained in:
parent
780aea1a36
commit
d267092b19
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||
case Key.U: // Mac returns lowercase
|
||||
case Key.U.toUpperCase():
|
||||
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
|
||||
dis.dispatch({ action: "upload_file" });
|
||||
dis.dispatch({ action: "upload_file" }, true);
|
||||
handled = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue