Roassal3
Roassal3 copied to clipboard
RSSearchInCanvasInteraction >> isKeyForSearch: malfunctions
2 problems with RSSearchInCanvasInteraction >> isKeyForSearch:
because it requires: evt commandKeyPressed
(see code down)
- on non mac computers (ex: linux), the commandkey is not used, it is the control key, so this is never true
- on at least one mac, the event received by this method, the property
commandKeyPressed
is always false. (and same for controlKeyPressed, shiftKeyPressed, oprionKeyPressed )
Code for
RSSearchInCanvasInteraction >> isKeyForSearch: evt
^ evt keyName = self keyForSearch and: [ evt commandKeyPressed ]