Skip to content

Commit 4a89df4

Browse files
Caleb Meredithfacebook-github-bot
Caleb Meredith
authored andcommitted
Flow v0.53.0 Codemod #7
Summary: bypass-lint ignore-conflict-markers ignore-signed-source ignore-nocommit Reviewed By: avikchaudhuri fbshipit-source-id: e22a0038b5bf3a64bb3382fdef757c241cc4c39a
1 parent 9d40ffb commit 4a89df4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/component/handlers/edit/commands/keyCommandUndo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var EditorState = require('EditorState');
1616

1717
function keyCommandUndo(
18-
e: SyntheticKeyboardEvent,
18+
e: SyntheticKeyboardEvent<>,
1919
editorState: EditorState,
2020
updateFn: (editorState: EditorState) => void,
2121
): void {

src/component/utils/KeyBindingUtil.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ var KeyBindingUtil = {
2323
* the altKey modifier. If they are combined, the result is an `altGraph`
2424
* key modifier, which should not be handled by this set of key bindings.
2525
*/
26-
isCtrlKeyCommand: function(e: SyntheticKeyboardEvent): boolean {
26+
isCtrlKeyCommand: function(e: SyntheticKeyboardEvent<>): boolean {
2727
return !!e.ctrlKey && !e.altKey;
2828
},
2929

30-
isOptionKeyCommand: function(e: SyntheticKeyboardEvent): boolean {
30+
isOptionKeyCommand: function(e: SyntheticKeyboardEvent<>): boolean {
3131
return isOSX && e.altKey;
3232
},
3333

34-
hasCommandModifier: function(e: SyntheticKeyboardEvent): boolean {
34+
hasCommandModifier: function(e: SyntheticKeyboardEvent<>): boolean {
3535
return isOSX ?
3636
(!!e.metaKey && !e.altKey) :
3737
KeyBindingUtil.isCtrlKeyCommand(e);

0 commit comments

Comments
 (0)