mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Have 'c' and 'C' behave identically to their buttons.
Prior to this commit, if you have the composebox open, pressing 'c' or 'C' clears its contents. This change makes it work more analogously to pressing the 'New stream message'/'New private message' buttons. (imported from commit 3de5bf83754d8ab86b1967ce2ba15f5846090667)
This commit is contained in:
parent
4ac4e41b30
commit
8f434fb63e
@ -113,10 +113,10 @@ function process_hotkey(e) {
|
||||
}
|
||||
return true;
|
||||
case 99: // 'c': compose
|
||||
compose.start('stream');
|
||||
compose.set_mode('stream');
|
||||
return true;
|
||||
case 67: // 'C': compose private message
|
||||
compose.start('private');
|
||||
compose.set_mode('private');
|
||||
return true;
|
||||
case 13: // Enter: respond to message (unless we need to do something else)
|
||||
if (search.keyboard_currently_finding()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user