Capturing the enter key

I want to take some action when the enter key is pressed in a textbox. I suppose I need to identify the enter key when it is pressed and then call some other method. please advise.

actually, u should use the KeyLIstener
The keycode (you will need this later) is VK_ENTERIf its a TextField, the reply re : ActionListener was correct.

Similar Messages

  • How to refresh changed data in a plannable template with the Enter Key

    Hi,
    The situation I face is as follows.
    Integrated Planning is being implemented as a tool for budgeting. The user changes a value in a plannable cell on the portal and wishes to see the new updated data by pressing ENTER. Currently we have provided a REFRESH button so that the user gets the desired result.
    Is it possible to see the updated value by pressing ' ENTER' and if so , whats the way around to do it.
    thanks in advance.
    Jaya

    Hey guys,
    I'm interested too in this solution. In BPS there is an additional function described in the HowTo Paper HowTo run planning functions on save and other events
    Now I'm looking for this possibility in IP as well in excel-based IP and web-based IP. For example a copy function should be executed automatically when pushing the enter key.
    Thanks a lot!
    Clemens

  • Since upgrading to Firefox 10.0.2 my AVG extension has had to be disabled, as after typing in any web address in the address bar, the enter key had no effect and I could not go to the site without pressing the Reload arrow on right.

    I have recently upgraded Firefox to the latest version 10.0.2. After that I could not enter any website address and press the enter key and get to the website, nor could I select a website from the dropdown list of previously visited websites. The only way I could get there was by pressing the arrow on the right side of the address box (Reload current page). Once I disabled the AVG extension, everything worked normally. As soon as I enabled the AVG extension, it stopped working again.

    Follow these steps for the controls to work:
    # Start > Programs > Mozilla Firefox > Mozilla Firefox
    # Find the “Tools” menu at the top of the browser window and select “Add-ons”.
    # Click on the “Extensions” icon to make sure you’re in the correct option menu.
    # Locate “AVG Safe Search” and click on the containing line to highlight and select the add-on.
    # Click the “Disable” button and close the Add-ons window.
    # Close down any Firefox windows you may have open.
    # That’s It – You’re Done!

  • How can I prevent forms from being prematurely submitted when users click on the  "Enter" key?

    Is there any way that I can prevent Dreamweaver CF submission forms from being prematurely submitted by the user when he/she clicks on the "Enter" key before they have completed the form?  I need the users to finish form and click on the "Submit" key.  I have the "Submit" key action configured as "submit form"

    Thank you!
    Found a solution through Google.

  • How can I remove the "enter" key from the keyboard? (New Macbook)

    I have the last white macbook, I spilled beer in a couple of keys, I managed to removed them without problems, but I can't find the way to remove the Enter Key, and there is no help on internet Anyone?

    What characters are you talking about exactly and why would you want to remove any?
    There is really no way to modify Apple's keyboards or add your own in iOS, but there are some apps that may provide a work around.

  • After 2/5/2012 update to 10.0, the enter key no longer functions on the URL bar. (Running Windows 7 Home Premium on 64 bit Intel Core i3)

    The URL line accepts text, but using the "Enter" key generates no response. The right arrow at the end of the URL line will take me to the URL.

    https://support.mozilla.org/en-US/questions/917446
    thank you

  • The enter key to login pages no longer works in Firefox 5

    After upgrading to Firefox 5 hitting the enter key after entering my password on login page does nothing. Before it would submit the page. This was a problem with the beta, too, and I had to downgrade to 4 to fix it. That works fine in 4.

    Yes, this is a stupid behaviour. I have it too. Also, in textboxes it doesn't give me new line.
    The form sending you can solve via hitting Ctrl + Enter.

  • When I type an address in the location bar and hit Enter nothing happens. I must click the arrow button at the end of the location bar. How do I fix it so that the Enter key works?

    When I type a web address in the location bar and hit enter nothing happens. In order to go to the website I've typed in, I must click the arrow button at the end of the location bar. How do I make it so that hitting the enter key takes me to the web page.
    == This happened ==
    Every time Firefox opened
    == Since Firefox 4 Beta installed an update

    The AVG addon seems to have caused the problem for me. I had it disabled and everything worked. Then I updated to AVG 2011 and the problem occurred. It seems to have reenabled itself after the update.
    Just disabling it solved the problem.

  • How to capture the enter even in alv

    hi, experts
    my requirement is that:
    i create an alv ,set it response to the enter even, if the content has changed, a class will be response it .
    the code like below:
        CALL METHOD g_grid->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CREATE OBJECT g_event_receiver.
        SET HANDLER g_event_receiver->handle_data_changed FOR g_grid.
    but if the alv content has no changed, nothing will be happen, i want to do something such as popup a message even if the content has not changed and user press enter.
    pls help me ,thanks

    I don't think this is possible.
    may be you can do is
    during the enter key is pressed
        call method cl_gui_cfw=>set_new_ok_code
                 exporting
                     new_code = 'DUMMY'.
    and in the user command
    if ok_code eq 'DUMMY'
        call method g_grid->check_changed_data
          importing
            e_valid = v_valid.
        if v_valid ne c_x.
          call function 'POPUP_TO_CONFIRM'
            exporting
              titlebar              = text-025
              text_question         = text-026
              text_button_1         = text-027
              text_button_2         = text-028
              display_cancel_button = ' '
            importing
              answer                = v_answer.
    endif.
    a®s
    Edited by: a®s on Jul 2, 2008 10:37 AM

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Why isn't the enter key working in InDesign?

    I have installed Adobe InDesign CS6 as creative cloud but pressing the enter key on the numbers keypad doesn't move my text to the next page as it should but just drops it to the next line. What can I do to resolve this?

    Windows Laptop? Some of them have both the enter keys mapped together, and changing the state of the Numlock will swap between functions. If that's you, edit the shortcuts so bothEnter keys are a paragraph break, and make a new shortcut for page break (Numpad enter is actually a column break, by default).

  • Unexpected behaviour upon pressing the 'Enter' key on dialog screen

    Hi.
    I have two dialog screens that exhibit unexpected behaviour when i pressed the 'Enter' key.
    Screen 1: When I pressed the 'Enter' key, the focus shifted to another input field and the content of the previous input field is cleared. The thing is, I did not have any codes in PAI for 'Enter'. Why is this happening?
    Screen 2: On load, some of the fields on this screen will be disabled. However, when I pressed the 'Enter' key, all the disabled fields become enabled. Again, I did not have any codes that handle the 'Enter' key in PAI. Why is this happening?
    Any help is appreciated.

    Hi Atish.
    Yes, I have used CHAIN... END CHAIN.
    I thought that CHAIN... END CHAIN allows my input fields to be re-activated after an error message is displayed.
    How would CHAIN... END CHAIN cause the unexpected behaviour?
    Thanks.

  • Create record by the enter key

    I have a form with 10 items. Looks like this
    P16_ID hidden
    P16_Created_on Date Picker
    P16_Order_No Text Field
    P16_Origin Display as Text(saves state)
    P16_Destination Display as Text(saves state)
    P16_Bill_To_Location Display as Text(save state)
    P16_Rate Text Field
    P16_Code Select List
    P16_Carrier Select List
    P16_Weight Text Field(always submits page when enter pressed)
    I want the people to be able to key in the information and after the weight hit enter and it submits the page. Then it allows you to key in your next loads then when you get to weight hit enter again and so on. I do not want to have to use the create button because that takes longer to key the information in when you have to take your hands off of the keyboard and click create. The problem I keep getting is a branching error and the always submit page when enter pressed don't seem to work. I have version 1.6. Please help

    I believe that APEX submits a page when the enter key is press by default. However, I noticed that when you have a hidden field present in the form you get the branching error message. .
    If you change your hidden fields to regular text fields, this will take care of the problem. Of course, this may not be the best on your form, showing your ID on a regular text field.
    I am not sure if APEX developers intended to have it like this or if this is a bug.
    I hope this helps.

  • Using the enter key on an editable table

    Hi,
    I'm using 11g adf and I can't figure out how to get past this:
    When going through an editable table (with editingMode="editAll") using the enter key, it will stop after a certain number of rows, equal to the value of fetchSize. If I want to go down further, I have to scroll down another way to make it fetch the next set of rows, it won't go to the next row with the enter key. It simply won't execute the query to fetch the next rows.
    Increasing the fetchSize will just delay the problem to a row further down (and decrease the performance since the fetch operation can take quite a bit longer).
    I've tried to put a clientListener on both the table or the inputText fields to intercept the enter key, but that won't work when the table is in editable mode.
    Is there any way to fix this problem?

    Hi,
    I've tried to put a clientListener on both the table or the inputText fields to intercept the enter key, but that won't work when the table is in editable mode.
    The clientListener needs to be on the inputText fields. Then in JS you need to call a server listener which will check if the current row is already at the range end and if calls NextSet (you can provide this as a method binding). Unfortunately after this you will need to PPR the table to show the new rows. This is how I would try it.
    Frank

  • How can I use the enter key instead of tab to change field focus?

    I am using Acrobat 9 Pro.
    We have a fillable PDF where the users enter numbers into fields.  They want to be able to use the <enter> key on the 10-key pad instead of the <tab> key on the keyboard to move the focus to the next data entry field.
    How can I set my PDF so that it recognizes the <enter> key instead of the <tab> key for changing focus?
    Thanks!

    You can use a custom Keystroke script, something like:
    // Custom Keystroke script for text field
    if (event.willCommit && event.commitKey === 2) {
        getField("Text2").setFocus();
    Where "Text2" is the name of the next field. This doesn't disable the Tab key though. For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.608.html

Maybe you are looking for

  • Cannot login to iCloud with Yosemite

    Hi everybody, a few weeks ago I updated my iMac to Yosemite. It all works fine except that I cannot login to iCloud with my wife's account. When she logs in into her iMac account it sometimes appears a Mac configuration screen. It seems that everythi

  • MacBook Pro Mac OS X Lion 10.7.5 to new Mac Pro

    I am currently using a pro 2011 and I want to buy a new one that runs on the Os X Mavericks system. I back up my current computer with an external seagate hard drive right now. If I buy a new computer running on Maverick and connect my seagate drive

  • Creating a Program for Identifying Prime Numbers

    I am beginning computer science major and I am completely lost with this. Can anyone help me figure this out? Due: Monday, January 14, 10:00 am Write a program that calculates all prime numbers less than 10,000. The program works as follows: 1. Creat

  • How can I get the directory.xml file for WL6.0?

    I have installed the ALBPM Enterprise WL6.01 and started it in my server.But I get the error message when I login. directory configuration runtime fails to initilize with resource:/Aqualogic/j2eewl/tomcate/webapps/../../webapps/webconsole/WEB-INF/dir

  • Conversion of Japanese Code to English Language

    Hi, I have a requirement to convert existing Oracle Forms 4.5 coded in Japanese. I need to convert it into Oracle Forms 6i. Can any body tell me how can I convert existing Japanese code in to english. Cheers Madhu M Mishra