summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/urlbarBindings.xml
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 09:48:39 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 09:48:39 +0200
commit451cbfc0393ee0f3b8d18f856e6c8ad88d57b172 (patch)
tree0c62961b5b85901abf8883356562baee88fb63e3 /application/palemoon/base/content/urlbarBindings.xml
parentf2b4134845cb61831847e6746de2f15051d65a08 (diff)
downloadUXP-451cbfc0393ee0f3b8d18f856e6c8ad88d57b172.tar
UXP-451cbfc0393ee0f3b8d18f856e6c8ad88d57b172.tar.gz
UXP-451cbfc0393ee0f3b8d18f856e6c8ad88d57b172.tar.lz
UXP-451cbfc0393ee0f3b8d18f856e6c8ad88d57b172.tar.xz
UXP-451cbfc0393ee0f3b8d18f856e6c8ad88d57b172.zip
Bug 1100291 - Make getShortcutOrURIAndPostData() async by calling the passed callback off a zero timeout
Issue #112
Diffstat (limited to 'application/palemoon/base/content/urlbarBindings.xml')
-rw-r--r--application/palemoon/base/content/urlbarBindings.xml12
1 files changed, 2 insertions, 10 deletions
diff --git a/application/palemoon/base/content/urlbarBindings.xml b/application/palemoon/base/content/urlbarBindings.xml
index 44b398304..ec9feb22d 100644
--- a/application/palemoon/base/content/urlbarBindings.xml
+++ b/application/palemoon/base/content/urlbarBindings.xml
@@ -324,18 +324,10 @@
gBrowser.selectedBrowser.focus();
let isMouseEvent = aTriggeringEvent instanceof MouseEvent;
- let altEnter = !isMouseEvent && aTriggeringEvent && aTriggeringEvent.altKey;
-
- if (altEnter) {
- // XXX This was added a long time ago, and I'm not sure why it is
- // necessary. Alt+Enter's default action might cause a system beep,
- // or something like that?
- aTriggeringEvent.preventDefault();
- aTriggeringEvent.stopPropagation();
- }
// If the current tab is empty, ignore Alt+Enter (just reuse this tab)
- altEnter = altEnter && !isTabEmpty(gBrowser.selectedTab);
+ let altEnter = !isMouseEvent && aTriggeringEvent &&
+ aTriggeringEvent.altKey && !isTabEmpty(gBrowser.selectedTab);
if (isMouseEvent || altEnter) {
// Use the standard UI link behaviors for clicks or Alt+Enter