Skip to content
Permalink
Browse files

Correctly disable popup locker using Escape key

(see #12)
  • Loading branch information...
Infocatcher committed Nov 1, 2013
1 parent ef74dd0 commit d773ec7cc08693bed8055a64e67f0a7fd8e9cf3c
Showing with 4 additions and 1 deletion.
  1. +4 −1 Attributes_Inspector/attrsInspector.js
@@ -1498,6 +1498,7 @@ function init() {
popup: popup,
tt: this.context.tt,
ww: this.context.ww,
fxVersion: this.fxVersion,
closeMenus: this.closeMenus,
stopEvent: this.stopEvent,
stopSingleEvent: this.stopSingleEvent,
@@ -1551,7 +1552,9 @@ function init() {
case "keydown":
case "keypress":
case "keyup":
var onlyStop = e.type == "keydown" || e.type == "keyup";
var onlyStop = this.fxVersion < 25 // See notes in keypressHandler()
? e.type == "keydown" || e.type == "keyup"
: e.type == "keypress" || e.type == "keyup";
if(e.keyCode == e.DOM_VK_ESCAPE) {
this.stopEvent(e);
if(onlyStop)

0 comments on commit d773ec7

Please sign in to comment.
You can’t perform that action at this time.