Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow modifying/disabling keyboard shortcut for toggling icon bar #177

Closed
mirenradia opened this issue Jul 1, 2022 · 7 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@mirenradia
Copy link

mirenradia commented Jul 1, 2022

Problem Description

Currently if you have enabled a hiding icon bar (by setting the config option firefoxpwa.enableHidingIconBar = true), the only keyboard shortcut to toggle this is Ctrl+Alt.

Proposed Solution

It would be nice if this keyboard shortcut could be modified or disabled (the icon bar can still be toggled by right-clicking the title bar).

Additional Information

I guess it's my fault but I use Ctrl+Alt+<arrow key> to navigate between desktops so often find myself toggling the icon bar on my firefox PWAs accidentally.

@mirenradia mirenradia added the enhancement New feature or request label Jul 1, 2022
@mirenradia mirenradia changed the title Change keyboard shortcut for toggling icon bar Allow changing keyboard shortcut for toggling icon bar Jul 1, 2022
@mirenradia mirenradia changed the title Allow changing keyboard shortcut for toggling icon bar Allow modifying/disabling keyboard shortcut for toggling icon bar Jul 1, 2022
@filips123
Copy link
Owner

filips123 commented Jul 2, 2022

Allowing users to modify a keyboard shortcut (without them having to modify the code) could add quite a lot of complexity to the code due to how it's currently implemented. I'm also not sure about optionally disabling it as it also adds a bit of additional complexity with additional preference.

However, I can change the shortcut to only trigger once all keys have been released and only if only Ctrl and Alt keys have been pressed. This way, the icon bar shouldn't toggle on your Ctrl+Alt+<arrow key> shortcuts. I hope that would be enough, but I can probably still implement a preference to disable that shortcut if needed.

@mirenradia
Copy link
Author

However, I can change the shortcut to only trigger once all keys have been released and only if only Ctrl and Alt keys have been pressed. This way, the icon bar shouldn't toggle on your Ctrl+Alt+ shortcuts. I hope that would be enough, but I can probably still implement a preference to disable that shortcut if needed.

That would probably be enough for my needs although it would still be nice to be able to disable the shortcut with a preference.

@filips123 filips123 added this to the 2.0.0 milestone Jul 3, 2022
@mirenradia
Copy link
Author

Perhaps I should create a new issue but after the update to 2.0.1, I can no longer hide the icon bar at all. If I right-click on the bar and deselect "Icon Bar" or press Ctrl+Alt, it shows as deselected in the right-click menu but the bar is still visible.

@filips123
Copy link
Owner

It works for me... Can you check if firefoxpwa.enableHidingIconBar is still enabled in about:config and if it works when you try to hide it from the Firefox customize page? Also please check if it works in a new web app profile (after enabling firefoxpwa.enableHidingIconBar).

@mirenradia
Copy link
Author

I tried creating a new PWA in a new profile and enabled firefoxpwa.enableHidingIconBar (I don't think you can see the 'Icon Bar' option in the right-click menu for it without this enabled) but it still doesn't work for me. Should I create a fresh issue for it?

@mirenradia
Copy link
Author

Sorry, I also tried hiding it from the 'Customize Toolbar" page as well.

@filips123
Copy link
Owner

Yeah, please create a new issue, and also specify which OS and dektop environment you use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants