Repository navigation
Double Click or holding modifier to activate drawing #5
Replies: 3 comments 1 reply
|
I'll look into this. It gets complicated internally considering the amount of keyboard logic and modifier checks as part of a triggering event (text expansion, hotkeys, ignore keys, etc.). Adding another pathway has to be carefully considered, this is why even in the previous version it was an undocumented function. |
|
Okay, this is in now. There are two pieces, and together they cover what you're after:
Setting it up The draw key is an Advanced mode setting, so switch the config window to Advanced first. General > Starting a gesture > Draw key - pick a key. None (the default) turns it off. That alone gives you the key everywhere, alongside the right button. If you want the right button left alone in your navigation-heavy programs:
Now a right-button press in those programs goes straight through to the program with no delay, just like i.o isn't there, and the draw key still draws gestures over them. Everywhere else, both the right button and the draw key draw. Note that turning that switch off doesn't fall back to Global for the mouse buttons - in that group the buttons are simply off. A few things that are handy to know:
Why only those keys (and no Ctrl, Shift, Alt) The keys you can choose are Caps Lock, Scroll Lock, Pause, Insert, the Menu key and F13-F24. That list is fixed on purpose. While you're drawing, i.o holds back the key that started it, plus anything else you press, until it knows whether you drew a gesture or just tapped. That's fine for a key nobody holds down for any other reason. For Ctrl/Shift/Alt/Win it breaks things right away. Every Ctrl+C, Ctrl+click, Shift+click etc. would get its modifier held back for a moment, and i.o would have to guess, every time, whether you were starting a gesture or just using a shortcut. The other way around doesn't work either: letting Ctrl through and only starting a gesture once the mouse moves. You'd get a trail on every Ctrl+drag (copying files in Explorer, for example), and the program would see Ctrl held down the whole time you're drawing, so it does its own Ctrl+drag thing underneath the gesture. On top of that, modifiers already have two jobs in i.o. Holding one when you press a draw button makes it part of the gesture (Ctrl + a stroke can be a different action than the stroke alone). And Ctrl is the default ignore key: hold it while you right-click and i.o lets the press go straight through to the program. Making Ctrl a draw key too would leave all three meaning something different depending on timing, which is exactly the kind of thing that makes an input tool feel unpredictable. Typing keys are out for the obvious reason :) So I stuck to keys that basically nobody holds down for anything else. If your keyboard has no F13-F24, Caps Lock or Scroll Lock are the usual picks. BTW, if you only need the right button now and then in one program, the ignore key may already cover it: hold Ctrl while you right-drag and the program gets the drag untouched. Double-click to draw I didn't go that route. To tell a double-click from a single one, i.o would have to hold back every right-click for the double-click time, or pass the first click through. Holding it back adds a delay to every right-click everywhere. Passing it through means the program opens its context menu or starts its own drag on the first click. Neither is something I'm willing to put on the mouse path. The draw key plus the per-group switch gets you the same result without that cost. Let me know how it works with your setup! |
|
<3 |
Uh oh!
There was an error while loading. Please reload this page.
Lot of my software uses holding down right click for navigation, I could switch what mouse button is used but my brain don't like it :(. Also not sure if this already exists, I tried lookin.
All reactions