File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1098,7 +1098,7 @@ const Events = Module("events", {
1098
1098
1099
1099
onKeyUpOrDown : function ( event ) {
1100
1100
// Always let the event be handled by the webpage/Firefox for certain modes
1101
- if ( modes . passNextKey || modes . passAllKeys || modes . isMenuShown || Events . isInputElemFocused ( ) )
1101
+ if ( modes . passNextKey || modes . passAllKeys || modes . isMenuShown )
1102
1102
return ;
1103
1103
1104
1104
// Many sites perform (useful) actions on keydown.
@@ -1126,6 +1126,11 @@ const Events = Module("events", {
1126
1126
event . stopPropagation ( ) ;
1127
1127
return ;
1128
1128
}
1129
+
1130
+ if ( liberator . mode == modes . INSERT || liberator . mode == modes . TEXTAREA ) {
1131
+ event . stropPropagation ( ) ;
1132
+ return ;
1133
+ }
1129
1134
1130
1135
// liberator.echo ("key: " + key + "\nkeycode: " + event.keyCode + "\nchar: " + event.charCode + "\ntype: " + event.type + "\nwhich: " + event.which);
1131
1136
} ,
You can’t perform that action at this time.
0 commit comments