View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015777VTK(No Category)public2015-10-13 13:312016-08-12 09:55
Reporternormanius 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.2.0 
Target VersionFixed in Version 
Summary0015777: Arrow-key press-events are not seen by vtkRenderWindowInteractor on Windows
DescriptionWhy are arrow key-press events not forwarded to the vtkRenderWindowInteractor on Windows? Is there a workaround? Is there a general difference between arrow-key events on Windows and Mac?

I can reproduce the problem with the sample code attached. On Mac OS, I see 'Up', 'Down', 'Left' and 'Right' if I press the arrow keys. But on Windows, I don't see anything (the callback is not entered). I wondered why this is the case.

I use VTK 6.2.0 for python 2.7. I tested on Windows Server 2012 (similar to Windows 8) and Windows 7 (on a virtual machine), showing both the same behaviour.
Tagshackaton, Interaction, python
ProjectRelease
Typeincorrect functionality
Attached Files? file icon test_keypress_events.py [^] (1,711 bytes) 2015-10-13 13:31
? file icon test_keypress_events_win_tested.py [^] (1,496 bytes) 2015-10-21 15:05

 Relationships

  Notes
(0035360)
Hyun Jae Kang (reporter)
2015-10-21 15:03
edited on: 2015-10-21 15:06

Please use the keyword of "KeyPressEvent" instead of "CharEvent" in the function of AddObserver as following:

- self.AddObserver("CharEvent",self.onKeyPressEvent)
+ self.AddObserver("KeyPressEvent",self.onKeyPressEvent)

I tested the script file on Windows 7 and vtk 6.3.

Please check the attached file of "test_keypress_events_win_tested.py"

(0035450)
normanius (reporter)
2015-11-13 13:10

Indeed - this fixed my issue. Many thanks!
(0037425)
Kitware Robot (administrator)
2016-08-12 09:55

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
2015-10-13 13:31 normanius New Issue
2015-10-13 13:31 normanius File Added: test_keypress_events.py
2015-10-13 13:35 normanius Tag Attached: Interaction
2015-10-13 13:35 normanius Tag Attached: python
2015-10-19 14:54 Utkarsh Ayachit Tag Attached: hackaton
2015-10-21 15:03 Hyun Jae Kang Note Added: 0035360
2015-10-21 15:05 Hyun Jae Kang File Added: test_keypress_events_win_tested.py
2015-10-21 15:06 Hyun Jae Kang Note Edited: 0035360
2015-11-13 13:10 normanius Note Added: 0035450
2016-08-12 09:55 Kitware Robot Note Added: 0037425
2016-08-12 09:55 Kitware Robot Status backlog => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team