5

Notepad++ has this feature where you can right click + mousewheel to scroll between documents. My problem is that I hit this all the time by accident resulting in minor (yet cumulative) annoyances such as losing my place when I have many documents open.

I disabled Document Switcher but the switching still happens (just without the popup window showing a list).

I also looked into the Shortcut Mapper, but unfortunately this particular functionality is only listed as a keyboard shortcut which is ctrl+tab. I really just want to remove the mouse shortcut.

v6.5

2
  • 2
    I get the same behavior. Sounds like you need to file a bug report/feature request for this.
    – techturtle
    Commented Oct 18, 2013 at 20:18
  • You can achieve this by creating AutoHotKey macro, which will block WheelUp and WheelDown when there is right mouse button pressed. AutoHotKey is the right tool for these adjustments, I have created plenty of them without waiting for app authors to implement something.
    – miroxlav
    Commented Sep 3, 2017 at 22:23

1 Answer 1

0

As I said in comment, AutoHotKey macro can help to achieve what you expect:

WheelDown::
  GetKeyState state, RButton, P ; get state of right mouse button
  If (state = "U") {            ; U = up
    Send {WheelDown}
  }
  Return

WheelUp::
  GetKeyState state, RButton, P ; get state of right mouse button
  If (state = "U") {            ; U = up
    Send {WheelUp}
  }
  Return

I tested it, it works.

If you want to restrict it only to Notepad++, add #IfWinActive directive

1
  • I am checking in version 7.6.1 of npp and it switches to next / previous document with just mouse wheel left and right. The shortcut mapper doesn't let me delete these shortcuts from npp
    – thanos.a
    Commented Jan 12, 2019 at 22:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .