From 8f434fb63e626d24f7242e78332bf68ee2eb7fba Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Fri, 1 Feb 2013 17:16:00 -0500 Subject: [PATCH] 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) --- zephyr/static/js/hotkey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index bb69fe95a7..500bde23df 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -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()) {