mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:27:58 +01:00
Don't collapse command-line selection on mode change.
This commit is contained in:
@@ -42,12 +42,13 @@ const CommandWidgets = Class("CommandWidgets", {
|
||||
getElement: CommandWidgets.getEditor,
|
||||
getGroup: function (value) this.activeGroup.commandline,
|
||||
onChange: function (elem) {
|
||||
elem.selectionStart = elem.value.length;
|
||||
elem.selectionEnd = elem.value.length;
|
||||
if (!elem.collapsed)
|
||||
if (!elem.collapsed && elem.inputField != dactyl.focus) {
|
||||
elem.selectionStart = elem.value.length;
|
||||
elem.selectionEnd = elem.value.length;
|
||||
elem.focus();
|
||||
}
|
||||
},
|
||||
onVisibility: function (elem, visible) visible && elem.focus()
|
||||
onVisibility: function (elem, visible) visible && elem.inputField != dactyl.focus && elem.focus()
|
||||
});
|
||||
this.addElem({
|
||||
name: "prompt",
|
||||
|
||||
Reference in New Issue
Block a user