Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Pressing Alt+F doesn't open file menu #12458

Closed
srirambv opened this issue Jan 2, 2018 · 9 comments
Closed

Pressing Alt+F doesn't open file menu #12458

srirambv opened this issue Jan 2, 2018 · 9 comments
Labels
bug duplicate Issue has already been reported feature/keyboard-shortcuts feature/titlebar OS/Windows parity Features which should be supported in Brave since they're supported in other major browsers.

Comments

@srirambv
Copy link
Collaborator

srirambv commented Jan 2, 2018

Description

Pressing Alt+F doesn't open file menu

Steps to Reproduce

  1. Set browser focus
  2. Hide file menu by default
  3. Press Alt+F, file menu is not shown.

Actual result:
Pressing Alt+F combination should open up file menu

Expected result:
altf

Reproduces how often:
100%

Brave Version

about:brave info:

Brave 0.20.14
Brave Sync v1.4.2
libchromiumcontent 63.0.3239.108
Muon 4.5.33
Node.js 7.9.0
OS Architecture x64
OS Platform Microsoft Windows
OS Release 10.0.16299
rev 5d75826
Update Channel Beta
V8 6.3.292.48

Reproducible on current live release:
Yes

Additional Information

@srirambv srirambv added bug feature/keyboard-shortcuts parity Features which should be supported in Brave since they're supported in other major browsers. labels Jan 2, 2018
@srirambv srirambv added this to the Triage Backlog milestone Jan 2, 2018
@bsclifton
Copy link
Member

Because the Windows version of the app does not use a standard menu, this will not be a trivial change ☹️

@hugobuddel
Copy link
Contributor

Alt-F (or just Alt) does not open the menu either on 0.19.134 in Linux either.

@bsclifton
Copy link
Member

@hugobuddel thanks for calling that out. I believe the menu on Linux is implemented via the Electron popup control. This must not be setting accelerators

@jayyyin
Copy link

jayyyin commented Mar 24, 2018

@bsclifton do you know where the code is for this? I'd like to see if I can take a stab at this.
I think I found the code to handle the key presses here

// For ALT menu processing
if (Object.keys(this.keydown).length > 1) {
this.keydownHistory.push(e.which)
} else {

but I'm not sure what the command for opening "file" menu would be

@jayyyin
Copy link

jayyyin commented Mar 24, 2018

@bsclifton so if I'm understanding this correctly, I need to add a new WindowAction to tell the selection to update, to do that I need a new windowStore and to do that I need a new WindowConstant, am I understanding this right?

This was referenced Mar 24, 2018
@jayyyin
Copy link

jayyyin commented Mar 25, 2018

I've opened a second pull request since my first branch kind of broke and I wanted to keep it for reference since I did get somewhere with it, so I made a new branch for my second attempt at this, I'm really close I just need some feedback for how to approach actually making the submenu show up after it's been selected, any help would be appreciated.

@MargarytaChepiga
Copy link
Contributor

MargarytaChepiga commented Mar 26, 2018

I just checked it on Win10, just ALT works perfectly.
Nevermind, checked the wrong thing. Still reproducible.

@jayyyin
Copy link

jayyyin commented Mar 26, 2018

I managed to get the submenu to show up after pressing alt-f twice or pressing and holding it with @MargarytaChepiga's help, currently working to get it on single (non-held) press

@bsclifton
Copy link
Member

Closing this issue as a duplicate of #2949

@bsclifton bsclifton added duplicate Issue has already been reported and removed windows-important labels Apr 25, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Apr 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate Issue has already been reported feature/keyboard-shortcuts feature/titlebar OS/Windows parity Features which should be supported in Brave since they're supported in other major browsers.
Projects
None yet
Development

No branches or pull requests

5 participants