1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-20 15:45:46 +01:00

Push INSERT mode on top of PASS THROUGH mode when entering an input field, rather than clearing the mode stack.

This commit is contained in:
Kris Maglione
2010-11-17 19:18:19 -05:00
parent 7abe83ed8d
commit 5a618bee0e
5 changed files with 34 additions and 18 deletions

View File

@@ -44,7 +44,8 @@ const StatusLine = Module("statusline", {
*
* @param {'extended'|'secure'|'broken'|'insecure'} type
*/
setClass: function setClass(type) {
set class(type) {
this._class = type;
const highlightGroup = {
extended: "StatusLineExtended",
secure: "StatusLineSecure",
@@ -54,6 +55,7 @@ const StatusLine = Module("statusline", {
highlight.highlightNode(this._statusLine, highlightGroup[type]);
},
get class() this._class,
// update all fields of the statusline
update: function update() {