Skip to content

Commit

Permalink
e10s: correctly handle hotkeys inside editable nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Jul 30, 2015
1 parent f99724b commit 75adfad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2050,6 +2050,16 @@ var privateTab = {
var window = e.currentTarget;
if(k.forbidInTextFields) {
var fe = window.document.commandDispatcher.focusedElement;
if(
fe instanceof window.XULElement
&& fe.localName == "browser"
&& fe.getAttribute("remote") == "true"
) {
var doc = fe.contentDocument || fe.contentDocumentAsCPOW;
fe = doc.activeElement;
while(fe instanceof window.HTMLFrameElement)
fe = fe.contentDocument.activeElement;
}
if(fe && this.isEditableNode(fe)) {
_log("Don't use single char hotkey in editable node");
return;
Expand Down

0 comments on commit 75adfad

Please sign in to comment.