zulip/frontend_tests
Priyank Patel 6ab66ea17a keydown_util: Use Event.key instead of deprecated properties.
The Event.which and Event.keyCode are deprecated as pointed out by
TypeScript intellisense based on the jQuery types. We use Event.key
instead which behaves similarly to Event.which & Event.keyCode for
our use case.

The only difference in functionality by this change is that the vim
keys won't work when Caps Lock is on. This is because, in this case,
the key property will be "J" instead of 'j'. We can fix this by
adding a mapping for this, however, I think we don't want to handle
this case so I left this change out. Tested by trying out the
everywhere keydown_util is used.

Finally, we also turn off the new-cap rule for tests since I think
it fine to only enforce it on real code and exempting test code is
fine.
2021-05-27 23:33:17 -07:00
..
node_tests keydown_util: Use Event.key instead of deprecated properties. 2021-05-27 23:33:17 -07:00
puppeteer_lib dependencies: Upgrade JavaScript dependencies. 2021-05-10 18:07:13 -07:00
puppeteer_tests puppeteer: Fallback to default waitForSelect timeout. 2021-05-24 23:11:41 -07:00
zjsunit zjsunit: Add __jquery to objects. 2021-05-26 08:00:35 -04:00