зеркало из https://github.com/mozilla/gecko-dev.git
Bug 621509 - Check for content showing before forwarding keyboard events [r=mfinkle]
This commit is contained in:
Родитель
10ccbaef45
Коммит
69087caa15
|
@ -1684,6 +1684,9 @@ function ContentCustomKeySender(container) {
|
|||
|
||||
ContentCustomKeySender.prototype = {
|
||||
handleEvent: function handleEvent(aEvent) {
|
||||
if (Elements.contentShowing.getAttribute("disabled"))
|
||||
return;
|
||||
|
||||
let browser = getBrowser();
|
||||
if (browser && browser.getAttribute("remote") == "true") {
|
||||
aEvent.stopPropagation();
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<script type="application/javascript" src="chrome://browser/content/input.js"/>
|
||||
|
||||
<broadcasterset id="broadcasterset">
|
||||
<broadcaster id="bcast_contentShowing"/>
|
||||
<broadcaster id="bcast_contentShowing" disabled="false"/>
|
||||
<broadcaster id="bcast_urlbarState" mode="view"/>
|
||||
</broadcasterset>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче