MantisBT - VTK
View Issue Details
0006487VTK(No Category)public2008-03-02 10:402016-08-12 09:54
Dan Wilson 
Kitware Robot 
normalfeatureN/A
closedmoved 
 
 
0006487: Support for the Mac Command key (⌘) (patch included)

VTK has support for the Alt, Control and Shift modifier keys, but not the Mac Command key (⌘).

A patch is attached which adds this support for Cocoa-based applications.

(The patch is relative to CVS sources as of 2nd March 2008)
No tags attached.
diff commandKey.diff (1,076) 2008-03-02 10:40
https://www.vtk.org/Bug/file/6336/commandKey.diff
Issue History
2008-03-02 10:40Dan WilsonNew Issue
2008-03-02 10:40Dan WilsonFile Added: commandKey.diff
2008-03-05 16:11Sean McBrideNote Added: 0010714
2008-03-05 16:45Dan WilsonNote Added: 0010715
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036957
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0010714)
Sean McBride   
2008-03-05 16:11   
I'm a little confused as to the grand purpose here... You've added a 'command key' boolean and get and set accessors, but who would call them? and when? and why?
(0010715)
Dan Wilson   
2008-03-05 16:45   
It's used in exactly the same way as GetAltKey, GetControlKey and GetShiftKey from vtkRenderWindowInteractor, except that it's Mac-specific, so it must live in the subclass.

It can be used in a custom vtkInteractorStyle for a Mac app, to replace or augment behaviour like:

        if (this->Interactor->GetControlKey())
        {
            this->StartSpin();
        }

In my app, I use it in a callback command to determine whether the command key was pressed when the user clicked on one of my actors. I do this so that the behaviour of my app sticks closely to the OSX human interface guidelines, which describe the differences between Shift-clicking and Command-clicking.
(0036957)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.