4

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
    I get the same behavior. Sounds like you need to file a bug report/feature request for this. – techturtle Oct 18 '13 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 Sep 3 '17 at 22:23
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

  • 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 Jan 12 at 22:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.