Remove state machine code from hotkey.js

With the removal of process_compose_hotkey, the state machine now has only one
state.  Everything else is based on things like "is a text box focused right
now", which is probably a better approach.

(imported from commit 0e39c03956d28e30d2bdbf3b285410ad0cacca3e)
This commit is contained in:
Keegan McAllister
2012-11-29 13:55:08 -05:00
parent 093c65fed2
commit d55ccd32af
2 changed files with 40 additions and 62 deletions

View File

@@ -55,7 +55,6 @@ exports.start = function (msg_type, opts) {
show('private', $("#" + (focus_area || 'private_message_recipient')));
}
hotkeys.set_compose();
is_composing_message = msg_type;
$(document).trigger($.Event('compose_started.zephyr', opts));
};