Quoth Russ Cox <r...@swtch.com>: > > While I'm writing, another interesting plan9port change is that I made > shift-right-click in acme search backward from the current position. This > is very helpful when you are cycling through many results and go one step > too far. To pick that up, the Plan 9 mouse driver would have to be updated > to treat shift-click as adding 5 to the usual button number. (That is, the > normal buttons are 0 1 2 3 4, and the shifted ones are 5 6 7 8 9.) > > https://github.com/9fans/plan9port/commit/0c79c32675e83ff3d87d5bf52082652d85486a45
That seems useful, but as a person with a 7 button mouse, I think the interface to shifted mouse buttons should probably be different. I think my preference would be to have the keyboardctl device keep a map of which modifiers are currently pressed. if((mc->buttons&1) && (kc->mods&Mshift)) ... ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T1dee2a7aea3f7fa3-M14a56f4ba72b52e2b1621562 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription