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:
Waseem Daher 2013-02-01 17:16:00 -05:00
parent 4ac4e41b30
commit 8f434fb63e

View File

@ -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()) {