Notepad++ disable document switcher mouse shortcut

mousenotepadshortcuts

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

Best Answer

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

Related Question