mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 02:42:25 +01:00
Closes issue #121. Only an issue on Firefox 4b6.
This commit is contained in:
@@ -42,13 +42,14 @@ const CommandWidgets = Class("CommandWidgets", {
|
|||||||
getElement: CommandWidgets.getEditor,
|
getElement: CommandWidgets.getEditor,
|
||||||
getGroup: function (value) this.activeGroup.commandline,
|
getGroup: function (value) this.activeGroup.commandline,
|
||||||
onChange: function (elem) {
|
onChange: function (elem) {
|
||||||
if (!elem.collapsed && elem.inputField != dactyl.focus) {
|
if (elem.inputField != dactyl.focus) {
|
||||||
elem.selectionStart = elem.value.length;
|
elem.selectionStart = elem.value.length;
|
||||||
elem.selectionEnd = elem.value.length;
|
elem.selectionEnd = elem.value.length;
|
||||||
elem.focus();
|
|
||||||
}
|
}
|
||||||
|
if (elem.collapsed)
|
||||||
|
elem.focus();
|
||||||
},
|
},
|
||||||
onVisibility: function (elem, visible) visible && elem.inputField != dactyl.focus && elem.focus()
|
onVisibility: function (elem, visible) visible && elem.focus()
|
||||||
});
|
});
|
||||||
this.addElem({
|
this.addElem({
|
||||||
name: "prompt",
|
name: "prompt",
|
||||||
|
|||||||
Reference in New Issue
Block a user