forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
left-sidebar: Fix opening of compose box on narrowing using hotkeys.
Explaining the problem a bit: When we narrow to a stream/private message using `q+Enter`/`w+Enter` compose box opens which isn't desirable here. The bug here was the propagation of event after getting handled in `keydown_util.handle` to `hotkeys.process_enter_key`. Fixes: zulip#9679.
- Loading branch information
1 parent
283d530
commit 51ae82f
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ exports.handle = function (opts) { | |
|
||
if (handled) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
}); | ||
}; | ||
|