aboutsummaryrefslogtreecommitdiffstats
path: root/maine_coon.js
diff options
context:
space:
mode:
authoranekos2011-04-30 23:09:37 +0900
committeranekos2011-04-30 23:09:37 +0900
commita11c0be0bfd73c0a78f2a1ae38c3a55fda883ce9 (patch)
tree10dbef068ac650917ed74c8f33f5ab96ef8c9782 /maine_coon.js
parentb655459ff41348dd572655340572490cb24ea849 (diff)
downloadvimperator-plugins-a11c0be0bfd73c0a78f2a1ae38c3a55fda883ce9.tar.bz2
Add the workaround for http://code.google.com/p/vimperator-labs/issues/detail?id=536
Diffstat (limited to 'maine_coon.js')
-rw-r--r--maine_coon.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/maine_coon.js b/maine_coon.js
index f7ee430..0d8a6c2 100644
--- a/maine_coon.js
+++ b/maine_coon.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
<name lang="ja">メインクーン</name>
<description>Make the screen larger</description>
<description lang="ja">なるべくでかい画面で使えるように</description>
- <version>2.6.2</version>
+ <version>2.6.3</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<minVersion>3.0</minVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/maine_coon.js</updateURL>
@@ -167,6 +167,7 @@ let elemStyle =
let mainWindow = document.getElementById('main-window');
let messageBox = document.getElementById('liberator-message');
let bottomBar = document.getElementById('liberator-bottombar');
+ let commandlineBox = document.getElementById('liberator-commandline-command');
function s2b (s, d) !!((!/^(\d+|false)$/i.test(s)|parseInt(s)|!!d*2)&1<<!s);
@@ -329,6 +330,9 @@ let elemStyle =
}
})();
+ function focusToCommandline ()
+ setTimeout(function () commandlineBox.inputField.focus(), 0);
+
let useEcho = false;
let autoHideCommandLine = false;
@@ -377,12 +381,15 @@ let elemStyle =
bottomBar.collapsed = false;
let result = next();
inputting = true;
+ focusToCommandline();
return result;
}, true);
U.around(commandline, 'open', function (next, args) {
bottomBar.collapsed = false;
- return next();
+ let result = next();
+ focusToCommandline();
+ return result;
}, true);
U.around(commandline, 'close', function (next, args) {