File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
var EditorState = require ( 'EditorState' ) ;
16
16
17
17
function keyCommandUndo (
18
- e : SyntheticKeyboardEvent ,
18
+ e : SyntheticKeyboardEvent < > ,
19
19
editorState : EditorState ,
20
20
updateFn : ( editorState : EditorState ) = > void ,
21
21
) : void {
Original file line number Diff line number Diff line change @@ -23,15 +23,15 @@ var KeyBindingUtil = {
23
23
* the altKey modifier. If they are combined, the result is an `altGraph`
24
24
* key modifier, which should not be handled by this set of key bindings.
25
25
*/
26
- isCtrlKeyCommand : function ( e : SyntheticKeyboardEvent ) : boolean {
26
+ isCtrlKeyCommand : function ( e : SyntheticKeyboardEvent < > ) : boolean {
27
27
return ! ! e . ctrlKey && ! e . altKey ;
28
28
} ,
29
29
30
- isOptionKeyCommand : function ( e : SyntheticKeyboardEvent ) : boolean {
30
+ isOptionKeyCommand : function ( e : SyntheticKeyboardEvent < > ) : boolean {
31
31
return isOSX && e . altKey ;
32
32
} ,
33
33
34
- hasCommandModifier : function ( e : SyntheticKeyboardEvent ) : boolean {
34
+ hasCommandModifier : function ( e : SyntheticKeyboardEvent < > ) : boolean {
35
35
return isOSX ?
36
36
( ! ! e . metaKey && ! e . altKey ) :
37
37
KeyBindingUtil . isCtrlKeyCommand ( e ) ;
You can’t perform that action at this time.
0 commit comments