mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839473 - Return early in form.js for non editable content r=fabrice
This commit is contained in:
parent
983957f583
commit
f8a403ad0e
@ -237,12 +237,20 @@ let FormAssistant = {
|
||||
|
||||
switch (evt.type) {
|
||||
case "focus":
|
||||
if (target && isContentEditable(target)) {
|
||||
if (!target) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (target instanceof HTMLDocument || target == content) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (isContentEditable(target)) {
|
||||
this.showKeyboard(this.getTopLevelEditable(target));
|
||||
break;
|
||||
}
|
||||
|
||||
if (target && this.isFocusableElement(target))
|
||||
if (this.isFocusableElement(target))
|
||||
this.showKeyboard(target);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user