View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015777 | VTK | (No Category) | public | 2015-10-13 13:31 | 2016-08-12 09:55 | ||||
Reporter | normanius | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.2.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015777: Arrow-key press-events are not seen by vtkRenderWindowInteractor on Windows | ||||||||
Description | Why 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. | ||||||||
Tags | hackaton, Interaction, python | ||||||||
Project | Release | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | test_keypress_events.py [^] (1,711 bytes) 2015-10-13 13:31 test_keypress_events_win_tested.py [^] (1,496 bytes) 2015-10-21 15:05 | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |