Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25995

Pressing function keys F4, F6 and F10 are not detected by Flex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Events
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      Using F2, F4, F6, F7, F8, F9 and F10 keys in the Flex application and Flex is not supporting some(F4, F6 and F10) of these keys.

      Using IE 6, 7 for the application.
      Preferred not to use any other combination of keys for the function key functionality.

      Code is as below:

      <?xml version="1.0" encoding="utf-8" ?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="enableShortCuts()">
      <mx:Script>
      <![CDATA[
      import mx.controls.Alert;

      private function enableShortCuts():void

      { //stage.removeEventListener(KeyboardEvent.KEY_DOWN, alertKeyHandler); this.addEventListener(KeyboardEvent.KEY_UP, alertKeyHandler); }

      // have a requirement for F4 and F6 keys to work for the important use case.
      private function alertKeyHandler(event:flash.events.KeyboardEvent):void {
      var curKeyCode:int = event.keyCode;
      var shiftKey:Boolean = event.shiftKey;
      var ctrlKey:Boolean = event.ctrlKey;
      var altKey:Boolean = event.altKey;
      if(curKeyCode == 121)

      { Alert.show("F10 pressed"); // not working }

      if(curKeyCode == 118)

      { Alert.show("F7 pressed"); }

      if(curKeyCode == 119)

      { Alert.show("F8 pressed"); }

      if(curKeyCode == 120)

      { Alert.show("F9 pressed"); }

      if(curKeyCode == 117)

      { Alert.show("F6 pressed"); // not working }

      if(curKeyCode == 114)

      { Alert.show("F4 pressed"); // not working }

      }
      ]]
      >
      </mx:Script>
      <mx:TextInput x="74" y="88" text="Press F4 and F6 keys to see the Alerts" />
      <mx:Label x="74" y="62" text="Please place a cursor on the text box and press keys" />
      </mx:Application>

      Actual Results: Function keys such as F4 and F6 do not gives the keyBoard event on the flex application.

      Expected Results: Function keys should be recognized by the flex application

      Workaround (if any): NA

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: