From 620e6a73a567f9134b5f8bf1b2e5858c85d67f83 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 28 Aug 2010 18:58:37 -0400 Subject: [PATCH] Don't quit macro recording from input modes. Fixes liberator issue #175. --- common/content/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index 8fd5792b..7db54940 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -825,7 +825,7 @@ const Events = Module("events", { return; if (modes.isRecording) { - if (key == "q") { // TODO: should not be hardcoded + if (key == "q" && !modes.mainMode.input) { // TODO: should not be hardcoded modes.isRecording = false; dactyl.log("Recorded " + this._currentMacro + ": " + this._macros.get(this._currentMacro), 9); dactyl.echomsg("Recorded macro '" + this._currentMacro + "'");