Skip to content

Commit 6c623ef

Browse files
committed
Fix input fields on Facebook
1 parent a8ddb74 commit 6c623ef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

common/content/events.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,10 @@ const Events = Module("events", {
11101110
return;
11111111
}
11121112

1113+
if (liberator.mode == modes.INSERT || liberator.mode == modes.TEXTAREA) {
1114+
return;
1115+
}
1116+
11131117
let url = typeof(buffer) != "undefined" ? buffer.URL : "";
11141118
let inputStr = this._input.buffer + key;
11151119
let countStr = inputStr.match(/^[1-9][0-9]*|/)[0];
@@ -1126,11 +1130,6 @@ const Events = Module("events", {
11261130
event.stopPropagation();
11271131
return;
11281132
}
1129-
1130-
if (liberator.mode == modes.INSERT || liberator.mode == modes.TEXTAREA) {
1131-
event.stopPropagation();
1132-
return;
1133-
}
11341133

11351134
// liberator.echo ("key: " + key + "\nkeycode: " + event.keyCode + "\nchar: " + event.charCode + "\ntype: " + event.type + "\nwhich: " + event.which);
11361135
},

0 commit comments

Comments
 (0)