View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006487VTK(No Category)public2008-03-02 10:402016-08-12 09:54
ReporterDan Wilson 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006487: Support for the Mac Command key (⌘) (patch included)
Description
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)
TagsNo tags attached.
Project
Type
Attached Filesdiff file icon commandKey.diff [^] (1,076 bytes) 2008-03-02 10:40 [Show Content]

 Relationships

  Notes
(0010714)
Sean McBride (developer)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-03-02 10:40 Dan Wilson New Issue
2008-03-02 10:40 Dan Wilson File Added: commandKey.diff
2008-03-05 16:11 Sean McBride Note Added: 0010714
2008-03-05 16:45 Dan Wilson Note Added: 0010715
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036957
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team