From 29f82d3a7f339fa99759b589923f0d8657da28f5 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 3 Sep 2017 17:41:01 +0900 Subject: reopen command line after error --- src/content/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content') diff --git a/src/content/index.js b/src/content/index.js index 26c3840..8b3eb58 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -91,7 +91,9 @@ window.addEventListener("keypress", (e) => { messages.receive(window, (message) => { switch (message.type) { case 'vimvixen.command.blur': - vvConsole.hide(); + if (!vvConsole.isErrorShown()) { + vvConsole.hide(); + } break; case 'vimvixen.command.enter': browser.runtime.sendMessage({ -- cgit v1.2.3