fix(widgets): fix paintWidget ignore keys alt, control and shift#2140
fix(widgets): fix paintWidget ignore keys alt, control and shift#2140luaceseb wants to merge 3 commits intoKitware:masterfrom
Conversation
floryst
left a comment
There was a problem hiding this comment.
LGTM overall. Just would like to remove a stray comment.
|
|
||
| publicAPI.handleLeftButtonPress = (callData) => { | ||
| if (!model.activeState || !model.activeState.getActive()) { | ||
| // if (!model.activeState || !model.activeState.getActive()) { |
There was a problem hiding this comment.
Please remove this comment.
|
Actually, the shape widget handles mouse moves differently depending on Why not having those |
|
In our application, we use those keys+mouse for camera handling. Zoom, Pan, Rotation |
Gotcha. |
|
@floryst ShapeWidget handles (code not tested) |
|
Thanks for the update. @luaceseb please look to using modifier behaviors to implement your ignoreKey functionality. |
PR and Code Checklist
npm run reformatto have correctly formatted codeContext
The paintWidget does not follow the guidelines of ignoring the alt, control and shift keys like the other widgets. Example DistanceWidget
Changes
Results
Testing