![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Escape key closes dialog - how? Topic Summary: In DOORS 8.2 hitting the escape key closes most dialogs Created On: 8-Oct-2007 15:57 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
DOORS 8.2 documentations states that hitting the escape key closes most dialogs.
This is true, dpending on your definition of "most" :-) My question is - know how they do this? I found an example of capturing the escape key event in dxl/utils/charsel.dxl. This dialog has a canvas and it is the callback on the canvas that is being used to capture the escape key event. Also, there is a new constant defined for the escape key called keyEscape. I do not know of a way to assign a callback that handles keyboard events to anything other than a canvas. I did a "cheat" once by having a tiny canvas (one pixel wide and invisible to the user) that I used to capture keyboard events, but I can't imaging Telelogic would use a hack like that. It would be nice to upgrade my dialogs to act consistently and close when the escape key is hit. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Escape key closes dialog - how?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.