Skip to content

Commit 8377dc8

Browse files
committed
Merge branch 'master' into obey-close-window-config
2 parents 29a76cf + 81f7da6 commit 8377dc8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

common/content/events.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ const Events = Module("events", {
10981098

10991099
onKeyUpOrDown: function (event) {
11001100
// Always let the event be handled by the webpage/Firefox for certain modes
1101-
if (modes.passNextKey || modes.isMenuShown || Events.isInputElemFocused())
1101+
if (modes.passNextKey || modes.isMenuShown)
11021102
return;
11031103

11041104
let key = events.toString(event);
@@ -1120,6 +1120,10 @@ const Events = Module("events", {
11201120
return;
11211121
}
11221122

1123+
if (liberator.mode == modes.INSERT || liberator.mode == modes.TEXTAREA) {
1124+
return;
1125+
}
1126+
11231127
let url = typeof(buffer) != "undefined" ? buffer.URL : "";
11241128
let inputStr = this._input.buffer + key;
11251129
let countStr = inputStr.match(/^[1-9][0-9]*|/)[0];

vimperator/NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
201x-xx-xx:
22
* Stop propagation for keyboard event if that key are contained in -except option on :ignorekeys
3+
* Improvements in handling Esc for unfocusing text fields
34
* Closing the last tab of a window now respects the Firefox setting:
45
browser.tabs.closeWindowWithLastTab, which means those who are used to :tabclose never closing
56
the window when closing the last tab, should set this option to false (either through about:config

0 commit comments

Comments
 (0)