60919

Problem while capturing ALT key event in flex

Question:

I need to enable alt-<key> selection semantics for some Buttons in my application. If I write KeyDownEventListener for the Button, its not getting triggered when I press ALT key in the keyboard. Is there any way to enable alt key semantics for the buttons?

Thanks in advance

Answer1:

KeyboadEvent class has an <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/KeyboardEvent.html#altKey" rel="nofollow">altKey</a> property that you can use to check if Alt key was held-down while the current key was pressed.

Recommend

  • What's the difference between using a heading tag and a large font in a tag?
  • How do I extract xml properties using shell scripts?
  • Trying to place multiple Bootstrap Thumbnails side-by-side
  • SMT prover yields 'unknown' despite strong proven assertions
  • onActivityResult() not called after startActivityForResult() with Intent.ACTION_GET_CONTENT
  • use images instead of text in webgrid asp mvc
  • Image URL when previewed in Notes and in Web Browser
  • How to stop onclick from firing before ondblclick in JS/HTML
  • How to show underscore (shortcut) without holding Alt?
  • WPF Animation doesn't run first time
  • Missing permission to control media error on Android 5/L
  • jParallax trouble
  • window.onbeforeunload in javascript
  • IE11 textarea loses focus if another textarea is disabled
  • How to name a 'group' check box in Adobe Reader when wanting to fill form by FDF / XFDF
  • File loader changed image file name but not the file name in HTML file
  • Creating a Multi-Step Modal Using Jquery
  • Outputting SharePoint Hyperlink Column as URL
  • Rest Services conventions
  • Why cepheus don't send int without quotes to orion?
  • Debug.DrawLine not showing in the GameView
  • onBackPressed() not being executed
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Android full screen on only one activity?
  • Android fill_parent issue
  • Email format validation in mvc3 view
  • Spring Data JPA custom method causing PropertyReferenceException
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • C# - Serializing and deserializing static member
  • How to add date and time under each post in guestbook in google app engine
  • Sending data from AppleScript to FileMaker records
  • Adding custom controls to a full screen movie
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • How to include full .NET prerequisite for Wix Burn installer
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • Is it possible to post an object from jquery to bottle.py?
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal