Inputfield with Return/Enter key

Hi,
Could someone give me  hints about Inputfield with Return/Enter:
In General I'd like to press the button after Entering a value in the Inputfiled, but it is also easy to handle with Return/Enter key.
Therefor I want to have both possiblity(press Button or Return/Enter key).
How can I here implement the 2. alternativ(Return/Enter key)? - with Javaskript or possible directly in HTMLB ?
Thanks a lot in advance,
Regards,
Gauguin

Hi,
the label <InputField> has as agreggate submitOnEnter which triggers a server event when the cursor is in that field and you press <enter>.

Similar Messages

  • Launhing/Opening with "return/enter" key

    One of the things that drives me insane about OSX is that when an application or file is highlighted and you hit "return/enter" it doesn't open it it just gives you the option to change the file name... useless.
    Is there a way to change it so that when I hit "return/enter" it will launch the program or open the file?
    Much obliged.

    Moose55,
    Although I don't recommend it, nor using the Return or Enter keys, you may be able to set a key, to accomplish want you want, in System Preferences > Keyboard & Mouse > Keyboard Shortcuts:
    In there, click on the + (Plus) tab, to add the Shortcut.
    If you set an often used key, like Return or Enter, you may inadvertently, cause numerous items to open at the same time.
    I suggest that you select a more obscure key.
    ali b

  • Return/Enter key does not work in Safari/ Set up of new imac

    Setting up addresses when I type an address in the url window, or like now to return to the next line, the return/ enter key is not functioning? Any help would be much appreciated. thanks John

    Hi,
    Try shutting down the iMac. Disconnect the keyboard. Wait about 5 minutes. Reconnect the keyboard and restart the iMac. See if the Return key works now.
    If not, since it's so new, take the keyboard back for a replacement.
    Carolyn

  • How do i prevent the user from entering a RETURN/ENTER key into their username?

    Hello,
    i am currently trying to make a login system where the
    username will obviously enter their username.
    I have made my user input box editable and set up variables
    to accept the user input and store them into variables, along with
    error prevention for blank fields.
    However i cannot prevent the user from hitting the
    "enter"/"return" key. When i hit "enter" the user input box box
    gets larger as the type curser moves onto the next line and when
    the username is stored in a variable it is stored as "theuser
    RETURN" so when variable is passed to the next frame and is
    recalled by another text box to display the username, the user name
    has a carriage return.
    I want to prevent this, anyone got any suggestions? or know
    of any websites i can visit which will explain this to me nicely??
    Thank you

    suggestion:
    don't make the edit field editable right from the start.
    rather attach a behaviour to the field/text-sprite like:
    property mySprite, myMember
    on beginsprite me
    Sprite = me.spritenum
    -- this is the channel-number of the editbox
    myMember = mySprite.member.number
    -- this is the field/text-member
    member(myMember).editable = FALSE
    end beginsprite
    on mouseup me
    -- when i get clicked for editing, then set me editable
    member(mymember).editable = TRUE
    the keydownscript = "MyKeyhandler"
    -- this sets the keyhandler to YOUR keyhandler, see below
    end mouseup
    You would then need to have YOUR keyhandler in any mociesript
    and there you
    would block any unwished key, while editing
    on MyKeyhandler
    case the key of
    RETURN:
    stopevent;
    otherwise
    pass;
    end case
    end MyKeyhandler
    in the end you would attach a behaviour to any
    "Submit"-button (this is the
    one that "gets" the userinput" and performs further action
    according to your
    wishes and decisions)
    on mouseup
    the keydownscript = EMPTY
    -- this resets to normal
    user-ID = member("Whatever the number or name of your
    editfield
    is").text
    member("Whatever the number or name of your editfield
    is").editable
    = FALSE
    -- any further actions to make in your project
    -- to get along with the entered User-ID
    end mouseup
    something like this, I guess
    Peter

  • Macbook internal keyboard  return/enter key disabled

    Suddenly apropos of no software changes, the enter key has stopped functioning.  Is there a repair or am I going to have to buy a new upper case at $150 plus labor because one key has stopped working?  I have tried an external keyboard and the external return key will work.  The big problem is getting a google search to enter.....
    Thanks for any comments.  Unfortunately,  it seems that this is a hardware problem since I have not had other issues before with keyboard freeze of any kind.

    The genius bar on Michigan Avenue has a stool with my name on it... guess I'll be bellyin' up to the bar again this week.
    Thanks.

  • Problem with disabling "ENTER" key in JTextArea

    Hi,
    I have the following codes to disable the 'ENTER' key in the JTextArea,
    but it does not work. Does anyone know why?
    KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
    textarea.getKeymap().removeKeyStrokeBinding(enterKey);
    textarea.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    // do something
    Thanks,
    Pin

    I don't know how you mean "disable", but if you are going to ignore the Enter key, then add a KeyListener to the text area, and in the key pressed method, consume() the key event if the VK_ENTER was pressed. That's all, and you don't have to deal with that key binding thingy.
    The other two event types (typed and released) might be ignored, the enter is processed during key press (as it is now, with the default settings).
    The reason is that processing the Enter key (and other such internally understood keys) is done by the peer, but the peer won't get the key event if it's already consumed.
    FYI: Were it a JTextField, consuming the Enter key presses would mean that the field won't fire action events any more. Since text area does not fire action events, therefore it's a non issue.
    FYI2: Consuming the event only blocks the event to be sent to the peer, all the other listeners still get it.

  • IChat will not let me use Return/Enter key to send IM.  Just makes sound?

    OS 10.5.2. iChar launches fine. I double click name I want to send IM to. Type a message, then hit Return to send the message. It will not send. I here system sound when I use Return or Enter key on 2nd or 3rd attempts. 1st attempt, no sound. So, I can't send messages.
    I repaired permissions and trashed the 4 iChat preference files in my preference folder.
    Not sure what I have done but Return key is fine. Works in Skype and all other apps. iChat just does not like it so no way to send messages.
    HELP.....
    Thanks
    tj

    Quit iChat.
    Open Terminal (Applictaions/Utilities)
    Copy and Paste Bold text
    /Applications/iChat.app/Contents/MacOS/iChat -errorLogLevel 7
    Hit Enter.
    This will cause iChat to be started up and create a Log in Terminal which may tell us more.
    Do what you normally do to send text messages.
    Do what you do to Quit iChat.
    Grab All of the Log.
    Quit Terminal.
    Post log here. It will be long. If you want to split it do so around the bit that says if it found UPnP and your router's name.
    Make sure the bits cross over when you post.
    8:25 PM Saturday; March 8, 2008

  • 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

  • JFileChooser - activating buttons with the enter key

    Hi All,
    I am trying to figure out how to activate the cancel button in the file chooser by tabbing to it, and than pressing the enter key. I know how to do this in a regular dialog, but I can't seem to get the access I need to the JFileChooser to get it to work there.
    I would appreciate any help.
    Thanks!
    robinste

    The Buttons in the File Chooser by default dont use the Enter Key.
    You must make the Enter key work if you are to use it
    after you tab to get the focus on to it.
    For this to be done you will need to extend the FileChooser
    and change the key listener for the cancel button .......
    Hope t was of some help ............

  • Problem with the enter key

    I am facing a problem when I press enter key on any control like buttons, menus etc., The event get transferred to the parent container. It results in very weird behavior.
    For example I am showing a right click popup on a button, and when I hit enter on the selected popup menu the parent button also get clicked.
    I am using jre 1.4.1, has any one experienced this.
    Does any one know the workaround ?
    Thanks
    - Bharat

    How to consume? Action even does not have this method.
    Also, I am looking for a generic solutions, my application is huge, even if the workaround suggested by works, I need to do it at lots of places.

  • Return/enter key is broken, help please.

    So basically, after I downloaded an update for my computer, restarted, blah blah, my enter key broke. Also, my mouse would flash randomly sometimes too, and occasionally i would type a word only for it to be highlighted for some reason and I would accidentally delete it. But my main concern is the enter key. It's making using my macbook very difficult, and I would appreciate it if someone could help. Also, I'm using a 13 inch Macbook pro from late 2012, and the update was an update for mavericks, but I can't remember it's name.

    It's probably broken. I've never heard of software breaking a keys, but it's possible, so you might want to back up your data and do a clean install. If it still doesn't work , it needs to be repaired

  • How does one replace carriage returns (enter key) in text areas

    I have an address text area in one of my pages where end users are hitting enter after each part of the address. I want to replace the carriage return hex('0A') with spaces. How can I do that?

    If you're manually saving your data, you can just change your insert/update code as below:
    insert into myTable
    (myCol)
    values
    (replace(:PXX_MY_TEXT_AREA, Chr(10), ' '))
    where ...If you're building a page where you aren't directly saving your data, you can add an "on Submit/Before Computation" process that does something like:
    :PXX_MY_TEXT_AREA := replace(:PXX_MY_TEXT_AREA, Chr(10), ' ');

  • VMWare Horizon Return/Enter key getting 'stuck'

    Hi All,
    We have several users within our environment that are experiencing this issue. The issue being that sometimes the return key will get 'stuck' on and if they are in outlook it'll start creating hundreds or appointments, or in word the same with new documents it can be solved by just pressing another key on the keyboard but it can completely crash the VM due to lack of resources
    any help would be appreciated

    The genius bar on Michigan Avenue has a stool with my name on it... guess I'll be bellyin' up to the bar again this week.
    Thanks.

  • Submitting a form with enter key causing strange problems

    I am having a very strange problem with a webapp I am currently developing. I am using JSF 1.2 along with Facelets and RichFaces. I have coded a workflow/wizard 4-step process, and on some pages I have 4 submit buttons that all call different actions on the page. The users thought it would be useful to have the enter key submit the form, so I followed some online resources to trap a keypress using javascript, looking for the enter keycode and calling document.getElementById("elementName").click(). This works fine most of the time. Sometimes, though, it seems as if an entire new session is being created, and odd behavior starts happening. For example, my page will only include 2 of the 4 facelets on the screen -or- I will get NullPointerExceptions for objects that I know have been created in the session bean I am currently using -or- I will get a duplicate form Id after trying to re-submit the page. Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"? I'm really at my wit's end here (plus it's nearly 3 AM, that never helps things). All of the buttons being clicked are standard h:commandButtons. There is some setTimeout logic included to disable the buttons on the page to prevent double clicks (I cannot disable them onsubmit because disabled buttons don't pass the right values, perhaps that's causing it, but if so, clicking the buttons with the mouse would cause that issue too, right?)
    I am not posting the code (yet), but if anyone wants to take a look see and see if I am doing something really abhorrently wrong, I'm more than willing to, I'm just curious if anyone has had problems regarding javascript submission of forms via the click() method. Clicking the button does not exhibit this type of behavior. Just as a side note: I am doing different things with the enter key depending if a modal window is open (the enter key closes the modal if it's up, and if not, it submits the form via a button click).
    Any help is much appreciated, if anyone has any inkling about where I should start looking for answers it would be really helpful.
    Thank you.

    edfrost wrote:
    Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"?My guess is the second of these. You need to suppress the event handling after programmatically clicking the button.

  • Working with Enter Key - Reply ASAP pls

    Hi all,
    I'm working with Actionscript 2.0. I am applying the
    following code
    keyListener = new Object();
    keyListener.onKeyUp = function() {
    var keyCode = Key.getCode();
    if (keyCode == 13) {
    gotoAndPlay(1318);
    }else {
    gotoAndStop(1314);
    Key.addListener(keyListener);
    Problem I'm facing is that its not working with the enter key
    , however if i'm giving any other key code then its working. Infact
    if i'm giving the following code
    keyListener = new Object();
    keyListener.onKeyUp = function() {
    var keyCode = Key.getCode();
    if (keyCode == 13) {
    gotoAndPlay(1318);
    }else if (keyCode == 32) {
    gotoAndPlay(1318);
    }else{
    gotoAndStop(1314);
    Key.addListener(keyListener);
    Then its working fine but only in the case of else if part (
    key Code==32, space bar ), but not with the enter key.
    Please help.

    disable keyboard shortcuts if you're testing in the test
    environment.

Maybe you are looking for