mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 02:28:00 +01:00
Fix some command line focus issues.
This commit is contained in:
@@ -329,6 +329,8 @@ var CommandMode = Class("CommandMode", {
|
||||
this.completions.complete(true, false);
|
||||
},
|
||||
|
||||
get holdFocus() this.widgets.active.command.inputField,
|
||||
|
||||
get mappingSelf() this,
|
||||
|
||||
get widgets() commandline.widgets,
|
||||
@@ -801,12 +803,8 @@ var CommandLine = Module("commandline", {
|
||||
}
|
||||
]).toObject(),
|
||||
{
|
||||
blur: function onBlur(event) {
|
||||
if (this.commandMode && event.originalTarget === this.widgets.active.command.inputField)
|
||||
dactyl.focus(this.widgets.active.command.inputField);
|
||||
},
|
||||
focus: function onFocus(event) {
|
||||
if (!this.commandMode
|
||||
if (!this.commandSession
|
||||
&& event.originalTarget === this.widgets.active.command.inputField) {
|
||||
event.target.blur();
|
||||
dactyl.beep();
|
||||
|
||||
Reference in New Issue
Block a user