@@ -32,15 +32,15 @@ var {
32
32
isCtrlKeyCommand,
33
33
} = KeyBindingUtil ;
34
34
35
- function shouldRemoveWord ( e : SyntheticKeyboardEvent ) : boolean {
35
+ function shouldRemoveWord ( e : SyntheticKeyboardEvent < > ) : boolean {
36
36
return ( isOSX && e . altKey ) || isCtrlKeyCommand ( e ) ;
37
37
}
38
38
39
39
/**
40
40
* Get the appropriate undo/redo command for a Z key command.
41
41
*/
42
42
function getZCommand (
43
- e : SyntheticKeyboardEvent ,
43
+ e : SyntheticKeyboardEvent < > ,
44
44
) : ?DraftEditorCommand {
45
45
if ( ! hasCommandModifier ( e ) ) {
46
46
return null ;
@@ -49,7 +49,7 @@ function getZCommand(
49
49
}
50
50
51
51
function getDeleteCommand (
52
- e : SyntheticKeyboardEvent ,
52
+ e : SyntheticKeyboardEvent < > ,
53
53
) : ?DraftEditorCommand {
54
54
// Allow default "cut" behavior for Windows on Shift + Delete.
55
55
if ( isWindows && e . shiftKey ) {
@@ -59,7 +59,7 @@ function getDeleteCommand(
59
59
}
60
60
61
61
function getBackspaceCommand (
62
- e : SyntheticKeyboardEvent ,
62
+ e : SyntheticKeyboardEvent < > ,
63
63
) : ?DraftEditorCommand {
64
64
if ( hasCommandModifier ( e ) && isOSX ) {
65
65
return 'backspace-to-start-of-line' ;
@@ -71,7 +71,7 @@ function getBackspaceCommand(
71
71
* Retrieve a bound key command for the given event.
72
72
*/
73
73
function getDefaultKeyBinding (
74
- e : SyntheticKeyboardEvent ,
74
+ e : SyntheticKeyboardEvent < > ,
75
75
) : ?DraftEditorCommand {
76
76
switch ( e . keyCode ) {
77
77
case 66 : // B
0 commit comments