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
Support back mouse button #6996
Comments
|
There is no |
|
GPMDP uses a native node module for forward and back mouse buttons on linux that we made ourselves. https://github.com/jostrander/mouse-forward-back Does this fulfill your needs? |
|
I have run button 9 is forward button and button 8 is back button. And yes, it is working on Google Chrome and chromium. |
|
I came to the same results as @Pablohn26. |
|
There is now a year and a half and no progress on this? |
|
came here from vs code not supporting back key navigation... |
|
Almost 2 years for something seemingly simple. Please? |
|
Anything? This is the only thing stopping me using brave as my main browser on all of my computers. |
|
How should this be implemented?
Also, how about OSX? |
|
I am not an electron developer so maybe I am saying pure nonsense :) but maybe it is solvable by the adapter paradigm, |
|
it already is supported in Linux and it's really annoying, I keep accidentally pressing the button on my mouse, how do I disable the back button?! |
|
Given that this has bene solved in userland by modules like mouse-forward-back, and that this isn't currently on our roadmap, i'm going to go ahead and label this a |
|
If you guys want to disable the back button from working on your web page in electron just use this script in the body onLoad="noBack();" onpageshow="if (event.persisted) noBack();" e.g |
|
@coreybruce Your code lacks the function itself. Is |
I have a gaming application called Gamer World and I it is really annoying when I accidentally press the back button my mouse in the middle of a game and it goes back a page. here is a link to the Gitlab repo |
|
Can you communicate better and make it easier for software using electron to setup the navigate back/forwards correctly? |
|
As @britalmeida mentioned. Why wouldn't this be used in VSCode on Linux? Would be great to propagate the achievement :) |
|
What does VSCode have to do with Electron tho @JoseFMP? |
|
@coreybruce: vscode is an electron app |
|
@codebytere Oh right I see |
|
this is crazy. why is there an API difference for something so basic between windows and linux and why should each app implement back and forward specifically for linux and not share code with windows and macos? |
|
Seems like mac users are still lacking this. Why not introduce separate event 'navigation' or 'crossplatform-command' event? This is VERY ugly workaround. |
|
Isn't electron supposed to make cross platform development easier? Then why suddenly separate this behavior between platforms? |
|
With some javascript and html, we can make like browsers button (<) (>) for every platform. Code: |
It seems Event: ‘app-command’ is only available in Windows. Would be possible to add Linux support of it?
The text was updated successfully, but these errors were encountered: