Created
February 22, 2019 14:53
-
-
Save maxkoretskyi/04ddc40b253fd4e625328c910f721c98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let gridOptions = { | |
| suppressKeyboardEvent: function(params) { | |
| const KEY_LEFT = 37; | |
| const KEY_UP = 38; | |
| const KEY_RIGHT = 39; | |
| const KEY_DOWN = 40; | |
| const event = params.event; | |
| const key = event.which; | |
| const keysToSuppress = [KEY_LEFT, KEY_UP, KEY_RIGHT, KEY_DOWN]; | |
| const suppress = keysToSuppress.indexOf(key) >= 0; | |
| return suppress; | |
| }, | |
| ... | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment