Bug 591151 - Allow auto edit-mode on key press when awesomescreen is open, but readonly [r=vingtetun]

This commit is contained in:
Mark Finkle 2010-08-27 10:22:27 +02:00
parent 036f64257d
commit 81a9c17bc2

View File

@ -29,9 +29,12 @@
</method>
</implementation>
<handlers>
<handler event="keypress" keycode="VK_RETURN" phase="capturing">
<handler event="keypress" phase="capturing">
<![CDATA[
setTimeout(function() { BrowserUI.activePanel = null }, 0);
if (event.keyCode == event.DOM_VK_RETURN)
setTimeout(function() { BrowserUI.activePanel = null }, 0);
else if (this.readOnly)
this.readOnly = false;
]]>
</handler>
<handler event="text" phase="bubbling"