Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

mouse buttons should trigger forward/backward in browsing history #487

Closed

Description

@cblgh

I have a Razer Deathadder mouse, and I'm very used to using MB4/MB5 for going backwards and forwards in my browser history. Patchwork has the same kind of buttons, but when I press MB4/MB5 on my mouse nothing happens!

It's not a big thing, but it would feel a lot better navigationally if you could use those buttons in the same way as when browsing in Firefox or Chrome.

Activity

  1. mmckegg commented on Apr 9, 2017

    @mmckegg
    Contributor

    In addition it would be nice if macOS style back/forward page gestures worked.

  2. fenwick67 commented on Dec 28, 2017

    @fenwick67

    Some FYIs for anybody wanting to implement these:

    At least for Windows the app-command event can be used to grab the back button clicks.

    On MacOS the swipe event is used for three-finger swipes.

    The lack of support for mouse buttons for linux is a known problem, Brave has encountered it and hasn't solved it yet.

    This is basically the code needed for Windows support:

    if (process.platform == 'win32'){
      windows.main.on('app-command',function(e,cmd){
        if (cmd === 'browser-backward' && views.canGoBack){
          views.goBack()
        }else if (cmd === 'browser-forward' && views.canGoForward){
          views.goForward()
        }
      })
    }
    
  3. ThunderFD commented on Jun 25, 2018

    @ThunderFD

    oh yes please, I was about to open an issue about this. Has someone tried implementing this already?

  4. kroppt commented on Oct 31, 2018

    @kroppt
    Contributor

    Looks like someone is going at a solution in Electron: electron/electron#15441

  5. gergelypolonkai commented on Jan 14, 2019

    @gergelypolonkai

    Since it bugs me a lot, i opened an MR utilising an external library. In case anyone else is interested in this before the Electron releases their fix 😄

  6. gergelypolonkai commented on Jan 18, 2019

    @gergelypolonkai

    I will keep an eye on that Electron PR; whenever that is released, my solution will be obsolete.

  7. cblgh commented on Jan 18, 2019

    @cblgh
    Author

    what a ride

  8. lostmsu commented on May 9, 2020

    @lostmsu

    This does not seem to be working on Windows 10 with v3.17.7 (probably haven't worked before either).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions