Closed Bug 1391239 Opened 7 years ago Closed 5 years ago

pressing AltGr-Enter in the search bar should open page in a new tab

Categories

(Firefox :: Search, defect, P2)

57 Branch
Unspecified
All
defect

Tracking

()

RESOLVED FIXED
Firefox 72
Tracking Status
firefox57 --- wontfix
firefox72 --- fixed

People

(Reporter: cgohier, Assigned: bbassi)

References

(Regressed 1 open bug)

Details

(Whiteboard: [fxsearch])

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20170816100153

Steps to reproduce:

1. Enter URL in address bar, or search terms in search bar.
2. Press AtlGr-Enter


Actual results:

Page is loaded in current tab.


Expected results:

Page is loaded in new tab, the way it works in Windows.
Component: Untriaged → Location Bar
OS: Unspecified → Linux
I'm using the French (Canada) keyboard layout.
The problem is that ALT+GR is interpreted as CTRL+ALT.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Actually, no. AltGr-Enter does not work like CTRL-ALT-Enter on Linux.

ALT-CTRL-ENTER is canonizing and opening in a new tab.
AltGr-ENTER does the same thing as ENTER alone.
(In reply to Claude Gohier from comment #3)
> Actually, no. AltGr-Enter does not work like CTRL-ALT-Enter on Linux.

Yeah no, not on Linux, it does on Windows.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
See Also: → 1389739
Priority: -- → P2
Whiteboard: [fxsearch]
I'd say Linux is doing it right (AltGr shouldn't be interpreted as ctrl or alt or both), and Windows is in the wrong by emulating some pre-PC-AT behaviour by sending a Ctrl+Alt combo instead of anything sensible.  If anything, the inverse of this bug should be opened and this closed as invalid.  Actually, see Bug 900750.
I'd say the AltGr-Enter combo on Linux is useless, since it just does the same thing as only Enter.

The Windows comportment, having AltGr-Enter doing the same thing as Alt-Enter (loading in a new tab) allows to do a one-handed movement, which can also be considered to be an accessibility issue.

The fix for bug 1389739 seems to have fix this bug.

Fixed for the Address bar, but not the Search bar.

Component: Address Bar → Search
Summary: In Linux, pressing AltGr-Enter in address bar or search bar should open page in a new tab. → In Linux, pressing AltGr-Enter in the search bar should open page in a new tab.
No longer blocks: 1425024

Bhopesh Bassi, could you help, please?

Flags: needinfo?(bbassi)
OS: Linux → All
Summary: In Linux, pressing AltGr-Enter in the search bar should open page in a new tab. → pressing AltGr-Enter in the search bar should open page in a new tab

I can help if someone experienced gives me good pointers on how to fix this. Pointers in https://bugzilla.mozilla.org/show_bug.cgi?id=1389739 helped me fix it quickly.

Flags: needinfo?(bbassi)

Drew Willcoxon, could you please point Bhopesh where to fix this?

I assume it should be smth like this (based on bug 1389739):

https://searchfox.org/mozilla-central/rev/40e889be8ff926e32f7567957f4c316f14f6fbef/browser/components/searchbar/SearchbarInput.jsm#1282

To this:

if (
!isMouseEvent &&
event &&
(event.altKey || event.getModifierState("AltGraph"))
) {

I wish we could get it done for FF70 beta.

Flags: needinfo?(adw)

I will take a look at it.

When does v70 train leave? I have been busy at my day job lately. I will work on it soon.

Flags: needinfo?(bbassi)

Hey Drew, Can you share test cases files as well? Thanks

Flags: needinfo?(adw)

It looks like this is the only test that checks enter key handling in the search bar: https://searchfox.org/mozilla-central/source/browser/components/search/test/browser/browser_426329.js

Flags: needinfo?(adw)

I am really sorry Eugene. I have been extremely busy at my new job. I will try to finish it by October end.

Again, I sincerely apologize that it is taking so much time.

Flags: needinfo?(bbassi)
Attached file Fix Bug 1391239. (obsolete) —

Depends on D51504

I have fixed the bug. Accidentally I created two commits(and hence two revisions) by mistake. Do I need to merge these or fix these in some other way?

Here are the links to phabricator revisions. I have added Drew as reviewer on both.
https://phabricator.services.mozilla.com/D51504
https://phabricator.services.mozilla.com/D51505

Flags: needinfo?(adw)

Hi, sorry for the delay. Yes, please merge your commits. Our workflow is that we have one revision per reviewable chunk of code, and this case is certainly simple enough for one revision. (If a bug is big and requires many different loosely coupled parts, then we'll often split that up into multiple revisions.) Depending on your personal workflow, you can make as many commits locally as you like, but when requesting review, and when posting new versions of your work due to review comments, please squash them somehow and post a single revision. In this case, it looks like you can merge your D51505 into D51504 and then send D51504 to Phabricator again.

Flags: needinfo?(adw)
Attachment #9105995 - Attachment description: Fix Bug 1391239. → Fix Bug 1391239. Make AltGr-Enter in the search bar open a new tab.

Hey Drew any updates?

Flags: needinfo?(adw)
Attachment #9105995 - Attachment description: Fix Bug 1391239. Make AltGr-Enter in the search bar open a new tab. → Bug 1391239 - Make AltGr-Enter in the search bar open a new tab.
Attachment #9105996 - Attachment is obsolete: true

Bhopesh, Eugene, I'm very sorry I haven't been responsive on this bug. I don't blame you for asking about the status. That's perfectly reasonable, and I would have been asking a lot more if I were you.

I just queued Bhopesh's patch for landing, so it should make 72. The bug will be updated first when the patch lands on autoland and then again when it lands on mozilla-central. It will be closed once it's on mozilla-central.

Thanks Bhopesh for fixing this and the other bug.

Flags: needinfo?(adw)

Thanks a lot Drew. I don't blame Eugene for asking for status. Infact, I think I should have been more prompt to fix this bug.

Pushed by dwillcoxon@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc66012d716d
Make AltGr-Enter in the search bar open a new tab. r=adw
Status: REOPENED → RESOLVED
Closed: 7 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
Assignee: nobody → bbassi

Guys, thanks a lot! I will donate 25 € to Mozilla! It seems I will be happy again soon! :)

You are welcome :-)

Regressions: 1650209
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: