mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
eslint: Enable prefer-arrow-callback.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
960174408f
commit
a79322bc94
@@ -11,7 +11,7 @@ const keys = {
|
||||
};
|
||||
|
||||
exports.handle = function (opts) {
|
||||
opts.elem.keydown(function (e) {
|
||||
opts.elem.keydown((e) => {
|
||||
const key = e.which || e.keyCode;
|
||||
|
||||
if (e.altKey || e.ctrlKey || e.shiftKey) {
|
||||
|
||||
Reference in New Issue
Block a user