SoftKeyBoard checking for ENTER key

When I put up the softkeyboard for iOS how can I test when the ENTER key has been pressed using actionscript 3.
Currently I listen for the SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE to call a function but would rather do it using the ENTER key (go, search etc return key labelled key).
Please note I am using Flash Pro not Flex.

Do you really want to recheck it in a loop? It seems to me that it would be easier to create a separate thread that reads System.in, blocks on it, and then issues an event when it gets something.

Similar Messages

  • How to add a listener for enter key

    I'd like to build a chatzone applcation just like msn. The application
    has two textarea, one is for the messages sent and recieve and one is
    for the message typing area. Just like MSN, I'd like to send the text
    after the user pressed enter key. But my problem is I don't know how
    to make a key listener. I've tried jTextArea1.addKeyListener() but I don't
    know how to use it. Anyone can help me?
    Thanks in advance

    KeyListener is just an interface, so you could use:
    public class MyKeyListener implements KeyListener
       private JTextArea area = null;
       public MyKeyListener (JTextArea area)
            this.area = area;
       // Don't care about a key being pressed.
       public void keyPressed (KeyEvent e) {}
       // Don't care about a key being typed.
       public void keyTypes (KeyEvent e) {}
       // We care about the key being released.
       public void keyReleased (KeyEvent e)
           // Check what key it is.  Note sure if \n is the right one...maybe use the key codes.
           if (e.getKeyChar () == '\n')
                // The return key has been pressed and released, they really meant to press it!
                // Get the last line of the text from the text area.  This bits up to you...maybe
                // store the last location of the caret and then read from that point up
                // to the current point...
    }You can also use a DocumentListener if you are using a JTextArea but this is a little bit more complex but may be better, DocumentListeners work on telling you about more macro changes to the document...

  • Upload file in to SAP for 'ENTER' key delimited

    Hi SAP gurus,
    I have one issue while uploading the textfile into sap the file is contains 16bit char i.e. chinese char and req is as below
    there are many records in the file and i need to identify the next record by identifying ENTER key pressed.Insted of TAB key here its a ENTER key
    so please tell me how to achieve this i am using GUI_UPLOAD to upload text file.
    I want to identify where the enter key is pressed in the text file by reading ascii value of ENTER KEY will help me to find the starting of second record .
    The file format is as follows
    mmmm~~??????
    1~20110101~20111231
    //???: FIRST RECORD
    0~00130698114013434412011042604823700000913.030.172.22TestingCustomer310104120000000???????????????130601000000000??????532611-3357211??~~~
    0~CECLOR SUSP125EA13.030.172.2213.030~1510 FROM HERE SECOND RECORD its came after pressing enter
    1~0013069811401234512011042604823700001013.030.172.22Testing Customer310104120000000???????????????130601000000000??????532611-3357211??~~~
    0~CE125 6 XEA13.030.172.2213.030~1510
    Thanks
    Nirmal

    Are you sure that it's a ENTER key and not CR or CRLF (hex 0D0A)? 
    If it is CRLF (carriage return-line feed, you can check by looking at the Hex value of the string), you can split as described in this thread:
    How do I TRULY remove the CRLF (#) from the last field read in CSV dataset?
    Or see the  class: cl_abap_char_utilities=>NEWLINE or FORM_FEED for other possibilities. 
    for instance: 
    do.
    split (your input line) at cl_abap_char_utilities=>newline into line.
    if sy-subrc ne 0.
    exit.
    endif.
    append line  to internal table.
    enddo.
    The easiest way to process this would be to have the file come to you as lines of data with horizontal tab delimiters, without those multiple tildes, since that's something else you will have to deal with.
    Edited by: DaveL on Aug 1, 2011 7:58 PM

  • Action for ENTER KEY is not working in alv grid output (Classical)

    Hi Experts,
      I have searched SDN around 8 hours and could not get any help on my below issue.
      I am developing ALV report using function module (Classical ALV). ALV output has 4 input enable fields, if user enters data in any of those fields and clicks on enter button from key pad..the remaining fields needs to be filled automatically.
      I am facing the issue with enter key, even if i press enter key in the output there is no action and hence no user command triggered. May be i am using wrong funcion code in wrong way.
      Could any one tell me what function code can we assign for ENTER action in PF-STATUS?
    Regards,
    Murali Mohan

    Hi
    Try this simple code, it works fine:
    TYPE-POOLS: SLIS.
    DATA: BEGIN OF ITAB1 OCCURS 0,
           BUKRS LIKE T001-BUKRS,
           BUTXT LIKE T001-BUTXT,
          END OF ITAB1.
    DATA: GT_FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
          GT_REPID    LIKE SY-REPID.
    START-OF-SELECTION.
      SELECT BUKRS BUTXT INTO TABLE ITAB1
         FROM T001.
    END-OF-SELECTION.
      GT_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME     = GT_REPID
          I_INTERNAL_TABNAME = 'ITAB1'
          I_INCLNAME         = GT_REPID
        CHANGING
          CT_FIELDCAT        = GT_FIELDCAT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = GT_REPID
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = GT_FIELDCAT
        TABLES
          T_OUTTAB                 = ITAB1.
    FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM
                          RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'ENTER'. MESSAGE I208(00) WITH 'Pressed ENTER key'.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    FORM SET_PF_STATUS  USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'LIST_ALV' EXCLUDING RT_EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    Max

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <s:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • Who knows the character for enter key in plsql

    hello
    please do you know the character key for enter in plsql
    i want to write to text file serries of lines. after that i will copy this data into sqlplus and then past so that i don't press enter or don't use */*
    can you help please

    You must be on a MAC ;-)
    SQL> select 'first'||chr(13)||'second' from dual;
    'FIRST'||CHR
    second
    SQL> !uname -ir
    5.10 SUNW,Sun-Fire-V490
    SQL> select 'first'||chr(13)||'second' from dual;
    'FIRST'||CHR
    second
    SQL> !uname -rsv
    AIX 3 5
    SQL> c/13/10
      1* select 'first'||chr(10)||'second' from dual
    SQL> /
    'FIRST'||CHR
    first
    secondThe enter key is O/S dependent CHR(10) on *nix, chr(13) on Mac and chr(13) chr(10) on Windows
    John

  • Dynamic Action with KeyCode check for ENTER button pressed

    Hi,
    I want to create a dynamic action which executes if the ENTER button of field P1_NAME is pressed.
    I thought about this type of DA:
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.triggeringElement.keyCode == 13
    That unfortunately doesn't work! Dynamic action doesn't get executed...
    Hope for help! :)
    Tobias

    I found the solution in my own blog: :)
    Event: Key Press
    Selection Type: Item(s)
    Item(s): P1_NAME
    Condition: Javascript expression
    Value: this.browserEvent.keyCode == 13

  • Lower Tolerance Checking for PM Key

    Hi,
    For our business process we accept every incoming quantity change made by the vendor in the purchase order response. We accept quantity increments as well as quantity descents. In order to prevent the POR from having to be approved/accepted by the responsible purchaser, we also need a lower limit to customize the same.
    Therefore the question is, why is the lower limit input field missing in the PM key? When going through the help file of this customizing transaction we can read the following:
    PM: Quantity variance (converted to currency amount)
    If a confirmation is expected for a purchase order item, the system calculates the purchase order confirmation net price multiplied by the purchase order confirmation quantity. The system compares this sum with the defined upper and lower limits. You can also define percentage limits for the quantity variance check. Then the percentage variance from the expected quantity calculated - independent of the purchase order price - and this is compared with the defined percentage limits.
    As you see above, it is clearly stated that u201CThe system compares this sum with the defined upper and lower limitsu201D. So according to SAP help, lower limit comparison should be possible.
    In order for this to work we need the lower limit input fields.
    ---> Is there any other way to establish the above ?
    Thanks and regards,
    Aline

    Hi,
    Priority of tolerances is  PO tolerance limit,  TOG tolerance grp. for User, TOG tolerance grp. for Vendor (if user not logged on). Even absolute tolerance limit always has priority over percentage limit.
    In your case, you need to check PO tolerance first then TOG for user.
    regards,
    rahul

  • Checking for Ctrl key after DropTargetDragEvent

    Hi,
    I need help with a program which contains a table and a tree. A DropTargetDragEvent is fired whenever selected line(s) from the table are dragged to the tree. Upon dragEnter() I do some action. How can I detect if the Ctrl key is pressed at that moment?
    Any suggestions are highly appreciated.

    It doesn't make a difference if I call dropTarget.setDefaultActions(DnDConstants.ACTION_COPY_OR_MOVE) or not.
    But I just noticed that event.getDropAction() returns DnDConstants.ACTION_MOVE when I press the SHIFT key and DnDConstants.ACTION_COPY otherwise. This is better than nothing but actually I wanted to detect the CTRL key.

  • Sy-ucomm value for enter

    Hi,
    Can anyone plz help me with the sy-ucomm value for enter key.
    Thanks..

    Hi Renu,
    The OKCODE  or SY_UCOMM value is not same for 'ENTER' in all the cases. So its better to go for debugging .
    Whenever you want to know the ok code or sy-ucomm value  of a key , type '/h' in the command box and press enter. It shows a message on the status bar 'Debugging Switched On'. Now if you press any key , it switches to debugging mode  and type sy-ucomm in the fields list then you will get the SY-UCOMM or OK CODE.
    Incase of ALVs also you can get the SY-UCOMM. But in some cases the SY-UCOMM value may be NULL.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Mar 25, 2008 4:50 PM

  • Buttons and enter key problem

    hello,
    there are a few projects of enterprise quality which I am developing in java swing. I found out through research that many or rather most people involved with java believe that swing is ready for enterprise class robust desktop applications.
    so I as the team leador am starting my new projects in java swing.
    I personally find that the amount of java libraries present provide a rich set of functionality and it gives big mussle power to the developers.
    I am only concerned about one problem which many of you might have solved.
    I find that I have to hit the space bar instead of enter key to fire an action. in languages like vb I can press enter key to fire the click events. specially in menu items I certainly don't expect my clients to press the spacebar. besides there are many people who are so used to the keyboard and enter key in particular that it will be hard or rather next to impossible to change their habbits.
    how can I make the menu items work with the enter key. I mean do I need to create the code for keypress events every time I also create an action performed method? or is there a way where I can do it without extra coding.
    it is just that I don't want to right extra code for enter key along with click events.
    one more important note.
    I am a blind person and I use the access bridge technology of java.
    so when I am involved in coding, I use the same.
    so may be my problem isn't a problem in the first place.
    kindly provide me some help
    thanks
    Krishnakant.

    The enter-key works on menu-items in all my applications. It did so since I started with java few years ago.
    Maybe some other problem (OS-specific) ?

  • Code to call a function when enter key is pressed

    hi all,
    In a table control program i need to call a function when i press enter key...
    but im not able to do that since the function is always called when i press a push button on the screen.... can any one help me in this.. please....

    Hi John,
          You are not getting any value in SY-UCOMM when you press "Enter",because the function code is not set for 'Enter" key in "Function Key" of the GUI-STATUS..
    First define some fucntion code say 'ENT' for the Enter button available in "Fucntion key" of the GUI status.Once you done and activate the program and test it.The function code which u defined will be coming to SY-UCOMM field when you press 'ENTER" button and you can handle the various fucntionality whichevcer you want on "ENTER" .
    Eg:
    case sy-ucomm.
    When 'ENT'.
    Endcase.
    Regards,
    Vigneswaran S

  • Property u201Czero allowedu201D must be identical for all Key Figures.

    I am having the following error message when trying to run a Statistical Forecast in the Background.  The job cancels out and I receive the error message:  Property u201Czero allowedu201D must be identical for all Key Figures. 
    When I look in RSA1 under Key Figures Details "zero allowed" appears to be checked for all Key Figures.  Can anyone point me in the correct direction I've already tried searching and did not find the answer.
    Thanks.

    HI,
    The setting is not in RSA1 but is in /SAPAPO/MSDP_ADMIN - Administration of Demand Planning and Supply Network Planning
    choose the relevant Planning area right button click on the Planning area choose change key figure settings. From here you can check the flag Zero allowed for the key figure that Stat. FCST is generated.
    Best Regards,
    Ivo Stoyanov

  • FB01 Enter Trading Partner for Posting Key 01 (Customer Invoice)

    Dear Experts,
    I would like to ask is it possible to enter the Trading Partner for the FI Document line item with Posting Key 01.
    I can modify the Trading Partner for Posting Key 40 and 50 but I cannot find field in the More Data Button.
    Can anyone help me to solve this issue?
    Thanks.

    hi,
    Check whether the document type you are using to post is allowed to enter the trading partner.
    To check use the TCODe OBA7  and select the relevent document type. then select the check box enter trading partner under control data.
    and also check the customer you assigned for that posting key 01 is got assigned trading partner in the master record or not(TCOD XD02/XD03).
    thanks.

  • Is there a key for entering text on ipad mini for the schwa symbol?

    Is there a key for entering text on ipad mini for the schwa symbol?

    You're welcome.
    It is possible there is an app containing a phonetic keyboard in the app store (or not). I haven't had use for one, so have never checked. Using it would require some copy and past on your part. But it might worth a search.
    Oh, just to be clear (should have googled and not trusted my aging memory) you're basically looking for an upside-down "e", right?

Maybe you are looking for

  • Help me out printing a report

    I'm trying to print a report directly to the printer and it's being hard. To see the report in the screen it's easy but to the printer it always gives an error. Is there a way that i can print to a local printer? I'm trying to set destype to printer

  • How to open a zip-file in Bridge for PC?

    How to open a zip-file in Bridge for PC?

  • Playlist song order correct in iTunes, incorrect on device.

    The playlist is smart.  The song order is correct in iTunes and shows the correct order on the device if you look at the contents through iTunes.  However, when looking at the playlist on the device itself the songs are out of order.

  • Georaster NODATA in Mapviewer

    Hi, I have a table with few georasters inside and I try to display them on a map in mapviewer. Everything works fine except one detail: the georasters have some NODATA value. And this NODATA is shown in black on the map (actually it overlaps some dat

  • Default Font for new Comments

    Is there any way to set the default font applied to all new comments? Just curious.