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: // 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;
|
||||||
|
|
Loading…
Reference in a new issue