Scintilla treats mouse modifiers as a group. When `Alt` is used for rectangular 
selection and `Shift` for extending a selection, `Alt+Shift+Click` will create 
or extend a rectangular selection from the current caret to the click. 
Scintilla's default mapping scheme uses Extend=Shift; Rectangular=Alt; 
Multiple=Ctrl. Where possible, the same modifier scheme is used for keyboard 
commands.

There could be an API to completely specify the logical from physical mouse 
modifier mapping: 
[Extend=Shift|Ctrl|Alt|Super|Nothing|...;Rectangular=...;Multiple=...] while 
retaining combinations. This should reject ambiguous definitions like assigning 
both Extend and Rectangular to the Alt key. Difficulties here include defining 
the set of modifiers as they differ between platforms.

While Scintilla does some processing of right mouse button and middle mouse 
button clicks, these don't use modifiers except for right clicks in the margin 
which may be forwarded to the app with a specific notification. Thus, it would 
be fairly simple to assign goto-definition to `Ctrl+RightClick` or similar 
chord,

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3899#issuecomment-2159487415
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3899/[email protected]>

Reply via email to