-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection tool has unexpected behaviour #115
Comments
You're right Jukka, as usual, Do you mean the behaviour is OK for you ?
|
For me, yes. Obviously my left hand is so accustomated to press the Ctrl first that I have never faced that issue. For others it might be surprising. Actually I have not been thinking that it is possible to turn on the additive mode permanently. |
OK, selection is usable if you know exactly what each key do, but I'm pretty sure that changing permanently the selection tool behaviour after a shift or a ctrl key hit is a side-effect of something which was not wanted at the first place.
The confusion is probably related to the combination of several KeyListeners : one on QuasiModeTool changing temporarily SelectTool to PanTool when Shift is pressed and another in AbstractCursorTool changing the selection tool behaviour if Shift is Pressed - along with ctrl) : |
hey Mike @mukoki , let me have a look and come back to you. sunny regards.. ede |
I now have a better idea about what the problem is with listeners and some thoughts about how to improve.
|
Observed behaviour of selection tool
left click a feature : replace selection by newly selected feature(s) : OK
Ctrl+Maj + left click : add to / remove from selection during the time keys are pressed : OK
but
Maj+Ctrl + left click : add to / remove from selection "permanently"
After the combination Maj+Ctrl (Maj pressed "before" Ctrl) the selection mode is changed permanently
It means that after this combination, you entre the additive mode without pressing any key
To return to normal mode (replace selection mode), the only way is to pressed Ctrl key alone.
=> we can get what we want but with unusual and unintuitive sequence of key combination
Proposition :
1 -
Maj+Ctrl should not change selection mode
Maj+Ctrl + left click should act exactly as Ctrl+Maj + left click (order of key pressed should not change the behaviour) : both should allow additive mode during the time Ctrl and Maj keys are pressed and return to the replace mode after Ctrl and Maj keys are released
2-
To be able to change selection mode permanently, we could use the Caps Lock key
The text was updated successfully, but these errors were encountered: