View in #ohif on Slack
@Daniel_Schwartz: Hi! When I simultaneously hold the shift key as I interact with cornerstone viewports like drawing lines etc., it doesn’t work. It’s really important for users to hold the shift key while using tools like stack scroll, window width, etc. Any idea why this is?
@Ibrahim_Mohamed: Just add a binding to the tool with a modifier key, something like
{
toolName: toolNames.Length,
bindings: [{ modifierKey: 16, mouseButton: Enums.MouseBindings.Primary }],
}
16 is shift in this case.
@Daniel_Schwartz: Awesome thanks, it turns out to do this for every tool I also had to remove the tool bindings when the tool is deactivated so it doesn’t conflict with the other tools