Closed
Bug 940040
Opened 11 years ago
Closed 11 years ago
Pressing and releasing "Alt" opens the File menu, on Linux (when it should just reveal the menu bar)
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
mozilla29
People
(Reporter: hub, Assigned: neil)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [Australis:P2][Australis:M?])
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
enndeakin
:
review+
MarcoZ
:
feedback+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
This is on Fedora 19. Running Gnome 3. This is m-c with Australis.
Press Alt
The menu pull down
Expected:
The menu shouldn't pull down. This is not the behaviour of Gtk apps.
It didn't happen before Australis.
This is a regression.
Comment 1•11 years ago
|
||
How to pull down the menu in Gtk apps?
Reporter | ||
Comment 2•11 years ago
|
||
Alt + accel.
Updated•11 years ago
|
Blocks: australis-merge
Hardware: x86_64 → All
Reporter | ||
Comment 3•11 years ago
|
||
It has been brought to my attention that the menu bar is hidden by default. Well, it isn't here. It like it was before: on top.
Also "hidding menu bar" smells a lot like an Ubuntu-ism. Note: I run Gnome 3, not Unity, on Fedora 19.
Comment 5•11 years ago
|
||
(In reply to Hubert Figuiere [:hub] from comment #3)
> It has been brought to my attention that the menu bar is hidden by default.
> Well, it isn't here. It like it was before: on top.
FWIW, you can make it hidden/shown by default, if you like, via View | Toolbars | Menu Bar.
(But anyway, let's not be too concerned with discussing the merits of hiding the menu bar in this bug - let's keep it targeted on the fact that "alt" actually opens a menu, which it should not.)
Comment 6•11 years ago
|
||
One other side note: As described in (duplicate) bug 940643, Alt doesn't pull down a menu on Windows Nightly -- this bug's behavior seems linux-specific (though I haven't tested mac).
(In the Windows nightly, Alt reveals the menubar & subtly *highlights* the file menu -- indicating that if you press downarrow or enter, that's the menu that's going to pop open. I suspect we might be trying to do that subtle-highlight thing on Linux as well, but maybe our linux menus don't have a highlighted-but-not-open state, so we end up accidentally popping open the menu?)
Comment 7•11 years ago
|
||
[Copying whiteboard flags that mconley set on duplicate bug 940643]
Whiteboard: [Australis:P4][Australis:M?]
Reporter | ||
Comment 8•11 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #5)
> (In reply to Hubert Figuiere [:hub] from comment #3)
> > It has been brought to my attention that the menu bar is hidden by default.
> > Well, it isn't here. It like it was before: on top.
>
> FWIW, you can make it hidden/shown by default, if you like, via View |
> Toolbars | Menu Bar.
>
> (But anyway, let's not be too concerned with discussing the merits of hiding
> the menu bar in this bug - let's keep it targeted on the fact that "alt"
> actually opens a menu, which it should not.)
I was just mentioning it for the purpose of making sure the problem is understood and fixed. I actually didn't know it was supposed to be hidden.
Reporter | ||
Comment 9•11 years ago
|
||
FWIW, my feedback on the menu bar is in bug 940669
Updated•11 years ago
|
Summary: Alt cause menus to pull down → Pressing and releasing "Alt" opens the File menu, on Linux (when it should just reveal the menu bar)
Reporter | ||
Comment 10•11 years ago
|
||
I don't think it should reveal the menu bar. Because doing so cause a whole "relayout" of the UI and this is really disruptive.
Comment 11•11 years ago
|
||
hub, how do you think the menu bar would be revealed, then? (when it's hidden)
Reporter | ||
Comment 12•11 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #11)
> hub, how do you think the menu bar would be revealed, then? (when it's
> hidden)
See bug 940669#c comment 9. F10 is the standard on Gnome.
Reporter | ||
Comment 13•11 years ago
|
||
I mean see bug 940669 comment 9
Updated•11 years ago
|
Comment 14•11 years ago
|
||
I'm not sure why the UI changes affected this, but this is actually a regression from bug 376649. Perhaps the old UI code was hiding this bug is some way.
Could the reporter or someone verify this on a Fedora system. This patch fixes the issue on my Ubuntu build. Pressing Alt by itself should activate the menubar without opening the menu. Pressing F10 by itself should open the File menu.
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Updated•11 years ago
|
Attachment #8341114 -
Flags: review?(neil)
Comment 15•11 years ago
|
||
I'm not running Fedora, but I can confirm that the patch fixes the issue on my Ubuntu 13.10 (w/ gnome-shell) system.
(BTW: /layout/xul/base/src has recently been flattened into /layout/xul, so to make the patch apply on current m-c, just open it in an editor and search-and-replace "/base/src/" with "/".)
Assignee | ||
Comment 16•11 years ago
|
||
I was looking at this, and I couldn't help thinking that attachment 8341114 [details] [diff] [review] was over-engineered; I came up with this code which I feel is short and to the point.
Attachment #8351258 -
Flags: review?(enndeakin)
Comment 17•11 years ago
|
||
Comment on attachment 8351258 [details] [diff] [review]
Possible patch
Yes, this is much better.
Attachment #8351258 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 18•11 years ago
|
||
Assignee: enndeakin → neil
Assignee | ||
Updated•11 years ago
|
Attachment #8341114 -
Attachment is obsolete: true
Attachment #8341114 -
Flags: review?(neil)
Comment 19•11 years ago
|
||
Backed out for linux test failures:
https://tbpl.mozilla.org/php/getParsedLog.php?id=32377867&tree=Mozilla-Inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/e013459d680e
Assignee | ||
Comment 20•11 years ago
|
||
OK, so what's happening is that I'm briefly activating the file menu before opening the popup, which wasn't happening before. Is this likely to be a problem i.e. should I just fix the test to expect the new behaviour or do we need to go back to the original patch?
Comment 21•11 years ago
|
||
I expect bug 941640 depends on this, and bug 941640 is P3, so this should probably be P3, too.
(In reply to neil@parkwaycc.co.uk from comment #20)
> OK, so what's happening is that I'm briefly activating the file menu before
> opening the popup, which wasn't happening before. Is this likely to be a
> problem i.e. should I just fix the test to expect the new behaviour or do we
> need to go back to the original patch?
I can't answer this question, but Neil, do you know?
Flags: needinfo?(enndeakin)
Whiteboard: [Australis:P4][Australis:M?] → [Australis:P3][Australis:M?]
Comment 22•11 years ago
|
||
I don't think it would be a problem, as long as the DOMMenuItemActive event isn't being sent multiple times and that the menu isn't being activated, then deactivated and the reactivated again.
Perhaps someone from the accessibility team could test just to be sure.
Flags: needinfo?(enndeakin) → needinfo?(surkov.alexander)
Comment 23•11 years ago
|
||
Comment on attachment 8351258 [details] [diff] [review]
Possible patch
(In reply to Neil Deakin from comment #22)
> I don't think it would be a problem, as long as the DOMMenuItemActive event
> isn't being sent multiple times and that the menu isn't being activated,
> then deactivated and the reactivated again.
>
> Perhaps someone from the accessibility team could test just to be sure.
right, a11y relies on these events so if we don't receive them then we should be ok but to be on safe side we need to ask Marco to check it.
Attachment #8351258 -
Flags: feedback?(marco.zehe)
Flags: needinfo?(surkov.alexander)
Updated•11 years ago
|
Whiteboard: [Australis:P3][Australis:M?] → [Australis:P2][Australis:M?]
Comment 24•11 years ago
|
||
You can download a build of the inbound patch from here:
Linux: http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-linux-pgo/1387936802/
OSX 10.7/10.8: http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-macosx64/1387930286/
Windows: http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32-pgo/1387936802/
Assignee | ||
Comment 25•11 years ago
|
||
(In reply to Neil Deakin from comment #22)
> I don't think it would be a problem, as long as the DOMMenuItemActive event
> isn't being sent multiple times and that the menu isn't being activated,
> then deactivated and the reactivated again.
The sequence is
* menubar DOMMenuBarActive
* menubar menu DOMMenuItemActive (new)
* menubar menu popup popupshowing
* menubar menu popup menuitem DOMMenuItemActive
So there are now two DOMMenuItemActive events, one for the first menu itself, as well as one for the first item on that menu.
Assignee | ||
Comment 26•11 years ago
|
||
Interestingly this is the sequence of events that I recorded for an Alt+F keypress on Windows:
* menubar DOMMenuItemActive
* menubar menu menupopup popupshowing
* menubar menu DOMMenuItemActive
* menubar menu menupopup menuitem DOMMenuItemActive
Comment 27•11 years ago
|
||
It should be ok. I notice the failing tests are for F10 keypresses though. It looks like we don't have a Linux Alt key alone test. One should be added after the windows one.
Assignee | ||
Comment 28•11 years ago
|
||
(In reply to Neil Deakin from comment #27)
> It should be ok. I notice the failing tests are for F10 keypresses though.
> It looks like we don't have a Linux Alt key alone test. One should be added
> after the windows one.
Shouldn't the Alt key alone now have the same results as on Windows, so I can just remove the relevant conditions?
Comment 29•11 years ago
|
||
Sure. I assume if the events are sent the same in that case.
Assignee | ||
Comment 30•11 years ago
|
||
Attachment #8361127 -
Flags: review?(enndeakin)
Comment 31•11 years ago
|
||
Comment on attachment 8361127 [details] [diff] [review]
Test changes
Should be ok, although I thought you meant that the second "DOMMenuItemActive filemenu" was now not present, which is more correct.
Attachment #8361127 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 32•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Comment 34•11 years ago
|
||
Comment on attachment 8351258 [details] [diff] [review]
Possible patch
Yup, nothing broken, all still good. :)
Attachment #8351258 -
Flags: feedback?(marco.zehe) → feedback+
Comment 35•11 years ago
|
||
This is a huge improvement, thanks. An uncommon but supported method of moving windows around in linux is to hold alt and left click anywhere on the window (resize is alt+right click). I don't think those shortcuts are super common, but I wanted to note that this patch, while a huge improvement over what was there, still does make the menu appear and shift all the content down when moving or resizing the window. If I had a good suggestion I'd file another bug, but I don't. :)
Comment 36•11 years ago
|
||
Note that I suspect bug 962007 to be a regression from this bug. Marked dependency.
Comment 37•11 years ago
|
||
This patch was backed out of Holly for causing bug 961672. This patch was never intended to land on Holly anyway, since this is an Australis bug.
Back out was: https://hg.mozilla.org/projects/holly/rev/45677214a968
Comment 38•11 years ago
|
||
(In reply to Wil Clouser [:clouserw] from comment #35)
> This is a huge improvement, thanks. An uncommon but supported method of
> moving windows around in linux is to hold alt and left click anywhere on the
> window (resize is alt+right click). I don't think those shortcuts are super
> common, but I wanted to note that this patch, while a huge improvement over
> what was there, still does make the menu appear and shift all the content
> down when moving or resizing the window. If I had a good suggestion I'd
> file another bug, but I don't. :)
I was encouraged to file another bug, so discussion for this should go in bug 962135. Thanks.
Comment 39•11 years ago
|
||
A quick "ALT" press/release shows the Ubuntu search bar, but I guess that's ok due to some system settings ?
Flags: needinfo?
Updated•11 years ago
|
Flags: needinfo? → needinfo?(neil)
Assignee | ||
Comment 40•11 years ago
|
||
Sorry, I have no idea about Ubuntu, I only have Fedora.
Flags: needinfo?(neil)
Comment 41•11 years ago
|
||
(In reply to Paul Silaghi, QA [:pauly] from comment #39)
> A quick "ALT" press/release shows the Ubuntu search bar, but I guess that's
> ok due to some system settings ?
Holding just a little longer the "ALT" key triggers then the Firefox menu.
I'm considering this verified fixed, if anyone has any objection please say.
Reproduced nightly 2014-01-10.
Verified fixed nightly 29.0a1 2014-01-21, ubuntu 13.04 x64.
Status: RESOLVED → VERIFIED
Comment 42•11 years ago
|
||
This still is not the same behaviour as it used to be. Pressing alt should show the menu, but releasing it, should make it go away. A single press on alt still moves keyboard input to the menu, which is annoying.
Comment 43•11 years ago
|
||
I believe the current behavior you're describing is actually what's intended (and matches how apps with hidden-by-default menubars behave on Windows, at least. I'm not sure there is precedent for apps with hidden-by-default menubars on Linux).
If it annoys you, you can always make the menubar permanently visible by default -- though actually, I just noticed that even then, pressing & releasing "alt" will focus the menubar, when I don't think it should. I filed bug 966683 on that.
Comment 44•11 years ago
|
||
I think we are our own precedent :)
I have just tested it on release, and with the menubar deactivated, it does *nothing*. And I like it that way. Firefox shouldn't do things that disturb me when pressing one button. I absolutely hate one button shortcuts for that reason, and especially if they're part of another shortcut (which I might start, but not finish, leaving me pressing a completely unrelated shortcut). Hide/show as I proposed (and though was default, but apparently I was wrong) would imo be the best solution. You don't need the somewhat more obscure F10 shortcut to view the menu, and at the same time, accident presses don't move focus.
Making the menubar permanent by default is a band-aid I don't like. It gives me an extra, useless row in Firefox.
Comment 45•11 years ago
|
||
(In reply to Timvde from comment #44)
> I think we are our own precedent :)
>
> I have just tested it on release, and with the menubar deactivated, it does
> *nothing*. And I like it that way. Firefox shouldn't do things that disturb
> me when pressing one button. I absolutely hate one button shortcuts for that
> reason, and especially if they're part of another shortcut (which I might
> start, but not finish, leaving me pressing a completely unrelated shortcut).
> Hide/show as I proposed (and though was default, but apparently I was wrong)
> would imo be the best solution. You don't need the somewhat more obscure F10
> shortcut to view the menu, and at the same time, accident presses don't move
> focus.
If keyup of alt hid the menubar again, how would you navigate the menu? Arrow keys while holding alt? That seems clearly inferior if not downright cumbersome (plus, there are shortcuts on Linux that use alt+arrows, from what I'm told!). I don't think what you're suggesting makes sense.
Assignee | ||
Comment 46•11 years ago
|
||
Please note: this bug is *solely* about the Alt key *opening* the File menu, which is incorrect whether or not you believe the Alt key should *activate* the menubar or not, discussion of which belongs elsewhere. Thank you.
You need to log in
before you can comment on or make changes to this bug.
Description
•