зеркало из https://github.com/mozilla/gecko-dev.git
Bug 614304: make Esc only stop page/XHR/WebSocket loads when the stop button is shown, r=dao
--HG-- extra : transplant_source : %A9K%87%F5%87d%3F%1Cj%11%9AJ7%D7%EC%F9%08%15%BFf
This commit is contained in:
Родитель
1007db2ced
Коммит
10f431c5f7
|
@ -351,12 +351,10 @@
|
|||
<key id="sharePage" key="&sharePageCmd.commandkey;" command="Social:SharePage" modifiers="accel,shift"/>
|
||||
<key id="focusChatBar" key="&social.chatBar.commandkey;" command="Social:FocusChat" modifiers="accel,shift"/>
|
||||
|
||||
# don't use |command="Browser:Stop"|, ESC is being used to freeze animated gifs,
|
||||
# even if the stop button and menuitem are disabled (see Bug 284140)
|
||||
<key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
|
||||
<key id="key_stop" keycode="VK_ESCAPE" command="Browser:Stop"/>
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
<key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" oncommand="BrowserStop();"/>
|
||||
<key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" command="Browser:Stop"/>
|
||||
#endif
|
||||
|
||||
<key id="key_gotoHistory"
|
||||
|
|
|
@ -1754,7 +1754,8 @@ function HandleAppCommandEvent(evt) {
|
|||
BrowserReloadSkipCache();
|
||||
break;
|
||||
case "Stop":
|
||||
BrowserStop();
|
||||
if (XULBrowserWindow.stopCommand.getAttribute("disabled") != "true")
|
||||
BrowserStop();
|
||||
break;
|
||||
case "Search":
|
||||
BrowserSearch.webSearch();
|
||||
|
|
Загрузка…
Ссылка в новой задаче