-
1. Re: Escape key lock
Jeesmon Jun 3, 2008 11:54 AM (in response to Ben Danis)You mean in AIR app?
If yes, try adding a KeyboardEvent.KEY_DOWN event listener and calling event.preventDefault() if event.keyCode == Keyboard.ESCAPE. -
2. Re: Escape key lock
Ben Danis Jun 3, 2008 12:14 PM (in response to Ben Danis)yeah, in a fullscreen AIR app. your code intercepts it only once the user has left full screen. -
3. Re: Escape key lock
Jeesmon Jun 3, 2008 12:38 PM (in response to Ben Danis)Try to find out which component is catching ESC key first by adding the event listener to each child component involved (one by one) and call preventDefault() and stopPropogation() to stop it. Just a thought.
http://livedocs.adobe.com/flex/3/html/help.html?content=16_Event_handling_5.html -
4. Re: Escape key lock
Oliver Goldman Jun 3, 2008 12:44 PM (in response to Ben Danis)Try using FULL_SCREEN_INTERACTIVE instead of FULL_SCREEN.
Oliver Goldman | Adobe AIR Engineering
-
5. Re: Escape key lock
Ben Danis Jun 3, 2008 2:04 PM (in response to Ben Danis)it is in FULL_SCREEN_INTERACTIVE already. we have put the keydown listener on the project file. and even put a breakpoint in it. If it is in full screen and we press esc, it leaves the full screen. If we press esc again, then it enters the breakpoint -
6. Re: Escape key lock
Cr99 Nov 12, 2009 11:58 AM (in response to Ben Danis)Was this ever resolved? I'm having the same problem. Supposedly this was fixed in AIR 1.5 but that's what I'm using and it still doesn't work. In fact I can't even get keyDown to fire at all, even without messing around with the full screen mode.
-
7. Re: Escape key lock
Kapil Flexible Mar 24, 2010 10:23 PM (in response to Cr99)You want to configure you xxx-app.xml
<application xmlns="http://ns.adobe.com/air/application/1.5">
Change this line to
<application xmlns="http://ns.adobe.com/air/application/1.5.2">
That will solve your problem.
-
8. Re: Escape key lock
Ibarim Aug 30, 2010 2:45 AM (in response to Kapil Flexible)Hi Kapil Flexible
I've listened to your advice,but get this error: invalid application descriptor: descriptor version does not match runtime version. Any idea what else is to change to get it worked?
Thnx
-
9. Re: Escape key lock
Kapil Flexible Aug 30, 2010 3:29 AM (in response to Ibarim)You have to provide the correct AIR version, which you have installed. To find the exact version of AIR without coding, go to flex sdk directory (If you are using flex) . Then GOTO the following folders.
sdks -> 3.5(sdk version may vary in your system) -> runtimes -> air -> win (If u are using windows) ->Adobe AIR ->Versions -> 1.0(This may vary in your computer) -> Adobe AIR.dll (In mac, it may vary).
Now see the properties of that Adobe AIR.dll file.
There you will find the version of the current AIR SDK Version. Now use this version in the descriptor.
Hope your problem solved, otherwise, reply me.
-
10. Re: Escape key lock
Ibarim Aug 30, 2010 3:53 AM (in response to Kapil Flexible)Thanx for quick answer.
It occurs that I got 1.5.0.7220 version, so I should probably update it somehow.
Nevertheless in some magic way the 'preventDefault()' method started to work in my version as well. This is so spooky:)
-
11. Re: Escape key lock
chris.campbell Aug 30, 2010 4:46 PM (in response to Ibarim)Ibarim wrote:
Thanx for quick answer.
It occurs that I got 1.5.0.7220 version, so I should probably update it somehow.
Nevertheless in some magic way the 'preventDefault()' method started to work in my version as well. This is so spooky:)
You can grab the latest SDK's at:
Instructions for overlaying AIR on the Flex SDK can be found in this document. While this document specifies AIR 1.5, it's also applicable the most recent version.
Moved discussion to the Adobe AIR Development forum.
Chris
-
12. Re: Escape key lock
Kapil Flexible Aug 30, 2010 5:27 PM (in response to chris.campbell)I'm having Flash Builder Non-Commercial Premium License provided by Adobe,
Flex 4.1 sdk and AIR 2.0. So don't need to upgrade at present.
-
13. Re: Escape key lock
Ibarim Aug 31, 2010 1:19 AM (in response to chris.campbell)Thanks Chris.
As I presume the Air SDK version represents 'normal' air version? Like when I develop app in Flex Builder with Air SDK 2.0, it may not work correctly when someone has Air 1.5 on his computer?
-
14. Re: Escape key lock
Neobox75 Aug 31, 2010 1:27 AM (in response to Ibarim)Hi,
An AIR application with <application xmlns="http://ns.adobe.com/air/application/2.0"> will not work on AIR 1.5 runtime.
-
-



