Open Bug 1685995 Opened 3 years ago Updated 3 years ago

Allow AltGr+Left/RightArrow to navigate history on Windows/Linux

Categories

(Firefox :: Keyboard Navigation, enhancement, P3)

Desktop
All
enhancement

Tracking

()

Tracking Status
firefox86 --- affected

People

(Reporter: Gijs, Unassigned)

References

Details

Attachments

(1 obsolete file)

See discussion in bug 1041377 comment #46 and others.

This seems useful given the key combination does nothing else right now anyway, and is a lot easier to hit than using the left alt key. Neil, how feasible is this and/or is there any particular reason not to do it?

Flags: needinfo?(enndeakin)
Severity: -- → S3
Type: defect → enhancement
Priority: -- → P3

Is the idea to allow both Alt+Left and AltGr+Left to go back in history? I don't know of any issue with doing that.

Note that on Windows, Ctrl+Alt+Left would also trigger this shortcut.

Flags: needinfo?(enndeakin)

(In reply to Neil Deakin from comment #1)

Is the idea to allow both Alt+Left and AltGr+Left to go back in history?

Yep.

Summary: Consider allowing AltGr+Left/RightArrow to navigate history → Allow AltGr+Left/RightArrow to navigate history on Windows/Linux

I looked into this a bit. I get the impression that the current code doesn't support AltGraph as a modifier.

Attached file WIP: Bug 1685995 - Support AltGr keys (obsolete) —
Assignee: nobody → evilpies
Status: NEW → ASSIGNED

Hi! Would you mind looking at this? It's not really that important, but I would like to hear your thoughts.

Flags: needinfo?(masayuki)

Yeah, sounds reasonable especially if the other browsers do so. But like comment 1, Control + Alt + Arrow(Left|Right) would cause history navigation on Windows seems odd to me, but I have no idea to prevent it without over size patches.

Flags: needinfo?(masayuki)

Thanks for answering! I did a quick google search for Ctrl + Alt + Arrow. Seems like there is Intel or Windows software that uses those hotkeys: https://www.intel.com/content/www/us/en/support/articles/000005491/graphics.html. I wonder if that is going to cause issues.

(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900)(Away: 4/29-5/5) from comment #7)

Yeah, sounds reasonable especially if the other browsers do so. But like comment 1, Control + Alt + Arrow(Left|Right) would cause history navigation on Windows seems odd to me, but I have no idea to prevent it without over size patches.

Could the widget code the patch affects here not treat "altgraph" as applying as a shortcut modifier if ctrl is also pressed? Or is there some reason that would not work?

Flags: needinfo?(masayuki)

(In reply to :Gijs (he/him) from comment #9)

(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900)(Away: 4/29-5/5) from comment #7)

Yeah, sounds reasonable especially if the other browsers do so. But like comment 1, Control + Alt + Arrow(Left|Right) would cause history navigation on Windows seems odd to me, but I have no idea to prevent it without over size patches.

Could the widget code the patch affects here not treat "altgraph" as applying as a shortcut modifier if ctrl is also pressed? Or is there some reason that would not work?

When active keyboard layout has AltGr key, but user uses Ctrl + Alt key for emulating the AltGraph key (e.g., when there is no AltRight key), only AltGraph is set and Ctrl and Alt states are removed.
https://searchfox.org/mozilla-central/rev/4275e4bd2b2aba34b2c69b314c4b50bdf83520af/widget/windows/KeyboardLayout.cpp#1137-1150

So, from XP code level, we cannot distinguish whether the AltGraph state is caused by AltRight key press or Ctrl + Alt key's emulation.

Flags: needinfo?(masayuki)
Assignee: evilpies → nobody
Status: ASSIGNED → NEW
Attachment #9211634 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: