Make Enter key act like Tab Key

Is there any way to make pressing the Enter key change the focus to the next field in the tab order? In other words, make the Enter and Tab keys act the same way?
Thanks!
Nelson

Hitting [Enter] key triggers "exit" event, so add the following code appropriately xfa.host.setFocus(TabTo); where 'TabTo' is the field name to set the focus. However you do need to match with the tabbing order in the form just to make sure [Enter] and [Tab] keys function similarly.
SekharN

Similar Messages

  • Enter key to act like tab key in JTable

    I have programmed a JTable application. I want that if I press 'Enter' key in the JTable cell, the cell at right side may be selected after validating input. Similarly, when I press 'Enter' in the right most cell, the first cell of the next row may be selected after validating input.
    In other words, I like 'Enter' key to behave as forward navigational key in JTable cells like 'Tab' key, however, after validating input.
    The following is the piece of code which is not working for me. Though, it changes selection border to the next cell on pressing enter, but the focus is not shifted and editing remains in the current cell.
    //voucherTable is a JTable object with three columns.
    Action moveForward = new AbstractAction() {
    public void actionPerformed(ActionEvent e) {
    int r=voucherTable.getSelectedRow();
    int c=voucherTable.getSelectedColumn();
    if(c==2){
    c=-1;
    r+=1;
    voucherTable.changeSelection(r,c+1,false,false);
    voucherTable.getInputMap().put(KeyStroke.getKeyStroke
    (KeyEvent.VK_ENTER,0),"moveForward");
    voucherTable.getActionMap().put("moveForward",
    moveForward);
    Kindly advise me to solve the problem.
    Thanks.
    Mujjahid

    KeyStroke tab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
    KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
    InputMap im = table.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    im.put(enter, im.get(tab));

  • Alt and Shift keys act like "sticky" keys - don't work if held down

    My 8830 Alt and Shift keys mysteriously stopped working normally, and now operate exactly how a one-thumbed person would love. 
    It seems I've activated some rare acessibility feature that I can't turn off. (Tried pulling battery.)
    If I hold down the Alt or Shift keys and press another key (e.g. the "W") nothing happens - no character is typed.  BUT if I press the Alt key and release it, the up/down arrow icon appears in the upper right of the screen.  Then if I next push the W key I get a "1" and the icon disappears.  The next keypress of any key gives its regular (letter) function.
    The same behavior applies to the right and left shift keys too, except the CAPS icon appears in the upper right.
    How do I turn this "feature" off?
    Thanks!

    I had the same problem in my BB 8100, i read this below, and it works to me too. The trackball seems to stay pressed or bad working so it makes the shift and alt not working. After this muy Alt and shift button returns to work correctly.
    sorry, I´m not so good english writer.
    Re: Alt Key mysteriously changed function 
    Options
     11-04-2008 09:08 AM
    I popped off the ring around the track-ball with a screw driver and cleaned the sensors. I also depressed the sensor on the circuitboard of the device with a metal tipped pen and things started working fine again. Rebooting and cleaning the track-ball had not helped until I manually pressed the circuitboard at which point everything returned to normal including track-ball clicking and having to press the Alt-key once every time I needed to use a number.
    hope that helps.
    - The Alaskan

  • Mac Book Pro with a separate apple keyboard (wired) randomly the keyboard will make a thudding noise like a key is depressed and then freezes

    Hi I'm using a Mac Book Pro with a separate apple keyboard (wired).  Randomly the keyboard will make a thudding noise like a key is depressed and stuck (which it isn't) which then stops when the keyboard is unplugged.  I've tried rebooting, plugging it into another port and unplugging  my mouse from it and it hasn't solved the issue.  I also can't pin point when it does it, it seems to be random so sometimes, like now it's fine and then others it does it every few minutes.  I'm reluctant to throw the keyboard out if there is a chance it can be fixed.  Any ideas?

    You cannot use any additional devices on the keyboard's USB ports when used in this fashion (except perhaps ONE low power Apple mouse). Anything more draws too much power and may make the keyboard malfunction. In general, keyboards do not tend to complain about low power, they just stop working properly.

  • Does the apple tv make the computer act like a receiver from the tv?

    does the apple tv make the computer act like a receiver from the tv?

    When using home sharing, the computer is on and running iTunes and the content is sent over the local network to the Apple TV.

  • Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote... help!

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

  • I cannot get the caps lock key or the tab key to work.  Could they be broken?

    I cannot get my caps lock key or the tab key to work.  This is a wired keyboard.  Could the keyboard be broken, or have I messed up some setting?

    Very possibly however you haven't completed a profile so we have no idea what version of OS X you use. First thing to do is complete your profile, if you don't know how  please click Profile Update.
    I am going to assume you are running ML, if so open System Preferences - Keyboard - uncheck the box that says  Use all F1, F2, etc. keys as standard function Keys.
    If that does not work then please reset the SMC and PRAM each 3x back to back.  You can find instructions by clicking Intel iMac SMC and PRAM resets

  • Enter key instead of TAB key

    Hi folks,
    I'd like to make the ENTER key behave the same way as the TAB key in
    the system I'm developing. I thought I would be able to do it by setting
    the ENTER as a function key (using Window.SetAsFunctionKey), and
    then after detecting an ENTER key press, request focus on the current
    fieldwidget's 'NextTabField'. However, this attribute defaults to NIL unless
    you override the default TAB sequence. And I don't really fancy setting
    the Next and Prev TabField for every onscreen field.
    Anyone done this before using a simpler method?
    By the way, I don't really want to get into a long thread about whether it is
    good practice to bypass Windows (TM) standards or not. We require
    fast data entry, and keyboard entry is essential for that.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10 years
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Duncan,
    The application we are building will replace legacy application and had similar
    requirements to accommodate the current users. We solved this problem by creating a
    special frame, appropriately named as the "Terminal Frame". It is distributed as
    part of the Scaffolds framework.
    The Terminal frame implements ENTER instead of TAB key. As you know the tabbing
    order in a terminal frame (top to bottom, left to right) is different than windows
    tabbing order (left to right, top to bottom). The Terminal frame solves the tabbing
    problem by constructing a "field traverse list" which includes all the fields in a
    window including nested views ordered according to their X,Y co-ordinates. It is a
    recursive method works on the same lines as described by Sakharov, Nickolay in
    earlier mail. The method also sets the NextTabField, PrevTabField references for
    each field in the traverse list.
    This framework is working very well for us. In a terminal frame world, you still
    have some user training issues as some of the fields (OutlineField, DropList,
    ArrayField, CheckBoxe etc.) behave differently for ENTER and TAB keys. But these
    are minimal compared to a complete change in style.
    Hope this is helpful.
    Good Luck,
    Shirish
    Duncan Kinnear wrote:
    On 22 Jun 99, at 23:47, Jeanne Hesler wrote:
    Do the math on this one. Be sure your users understand the cost and the
    lack of payback. I have no problem going against common practice when
    there is a good reason, but this reason just doesn't add up. Even if it
    did slow them down, which it won't, they would never lose enough time to be
    worth the work that it would take to implement.Jeanne,
    Thanks for your reply (even though it doesn't help me!).
    Don't get me wrong, I'm not advocating we abandon the TAB key
    functionality in favour of the ENTER key. I just want to ADD the ENTER
    key as a navigational aid for our 'legacy' users (and we have many). If it
    is done right, there should be no need to tell the user about it. Their
    transition to the new product would be virtually painless.
    Since I posted my original question I've realised that the cost of
    implementation is actually fairly low. And this is why. I have just
    discovered that the default tab order defined by Forte (left to right, top to
    bottom) is essentially useless for most of the windows we will be creating.
    Therefore, we will need to override it by explicitly setting the
    "NextTabField" and "PrevTabField" attributes of our input fields in virtually
    every window. As I am writing the framework for our new product, I will
    have to implement the facility to do this in the framework itself. And if we
    have our tab order defined, then adding the ENTER key functionality is
    minimal extra effort (see my original post). In fact, if I implement it in my
    "CoreWindow" (the root of my windows framework inheritence tree), then
    no-one will ever have to deal with it again.
    The TAB key is not even much of a windows data-entry standard. Many
    of our customers have defined secondary systems using Microsoft
    Access, and it uses the ENTER key (along with the TAB key) to move
    from field to field. Will these customers not complain that they cannot
    use the ENTER key to move between fields if we don't implement it?
    As we do not have the resources to completely rewrite our existing
    COBOL system (over 2 million lines of code) in one go. We will be rolling
    out the new system module by module. This means that a lot of our users
    will be switching between the new windows interface and the text-based
    unix telnet sessions. When I switch back and forth between windows
    editors and 'vi' on the unix host, I experience first-hand how mixed
    navigational facilities can hamper productivity!
    Anyway, I was just hoping there might be a little setting somewhere in
    Forte to switch this on, but as no-one has pointed it out, it seems unlikely.
    Thanks again for your input, lively discussion is always welcome.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10 years
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>--
    Shirish Kulkarni <mailto:[email protected]>
    Sage IT Partners <http://www.sageitpartners.com>
    44 Montgomery St. Suite 3200 San Francisco, CA 94104
    (925)210-6965 Office (415) 399-7001 Fax
    The Leaders in Internet Enabled Enterprise Computing
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • F4 Key acts like it is stuck

    I acquired a used MacBook Pro Model 1.1 running 10.5.5. The other day I noticed that my display showed the decrease sound widget like the F4 was being pushed. The system acts like the F4 key is in fact being pushed... if you raise the sound it goes right down again. i popped the key to make sure it wasn't stuck.. i used system preferences to make it so i had to use the fn key to make a function do the function.. and that is the wat all the function keys except f4 now operate
    It would seem that I have some sort of hardware problem but any thoughts? No I don't have a warranty and no I am no where near a service center... I would be happy just to make it stop what it is doing

    a bad head set was causing the problem

  • Arrow key acts like command-C

    I've got a classroom Mac that's behaving strangely. When you press the up arrow, it acts like a command-C. I've tried a different (known good) keyboard with the same result, so I know it's a setting in the computer somewhere. But I can't find it! How can I change this back to normal?

    Sorry, I posted to the wrong thread.
    Message was edited by: BobHarris

  • Shift key working like Command key in iMovie '06 Clips Pane

    I am trying to move a lot of clips at once within the Clips Pane. The Shift key is not working properly; instead, it acts like the Command key. When I click on one clip, then Shift-click a final clip, no range of clips get selected: instead, only THOSE TWO clips are selected. What could be happening?
    iBook G4   Mac OS X (10.4.5)  

    "..the Shift key was a muck.."
    ..? ..Oh, I see. I thought you meant ..you know: I had visions of a keyboard moulded from mud..
    Erm, Google combines "mud" and "keyboard" into "..A52’s Andy Hall Brings Classic Mud Flap Girl to Life In Honda ...When she opens the door to look inside, she sees another mud flap icon – the ... Kensington KIT PILOTBOARD WIRELESS DESKTOP KEYBOARD & MOUSE FOR MAC (Rated ..."
    ..which takes us to a little movie here (..though you may find it preceded by an Ad ..just click on SKIP ADVERTISEMENT..)

  • Is this a bug? Delete key acts as Home key

    In the SCSM client, go to a CR, look at the planning tab, and use your keyboard to modify the scheduled start/end dates. If you click in the box, and press the delete key (i.e. on the 9 to change it to an 8), the delete key acts as normal.
    However, if you use the arrow keys on the keyboard to move around (i.e. you changed the 9 to an 8, now you want to change it to 8:30 or something), the delete key now moves the cursor back to the beginning of the box.
    This can be reproduced with consistency. Is this some sort of a bug? I've never heard of this behavior before. Screenshot attached for context.
    www.standardexcellence.net | Oklahoma IT Superhero

    Hi FoaRyan,
    I have to say that I checked on my lab, and the no matter to use arrow keys or mouse, delete key only change it back to before, and then move the cursor back to the beginning of the box.
    If you want to change the date time, why not use backspace key to delete characters.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Is there a way to make the NAS200 act like a drive in my computer

    Not sure if this has been discussed here yet.
    I have a NAS200 connected to my router and I can access through my web browser no problem.
    I was wondering if there's a way to make it act like a drive that's in my computer. i.e give it a drive letter and have it show up in the "my computer" area.
    I am running win 8 pro desktop hard wired to the router with the nas200 connected. Is there a way to "mount" the nas200 as drive on the computer.
    Thanks,
    Bob
    Solved!
    Go to Solution.

    Yes, you just need to map the drive on your computer. You need to make sure first that the network drive is detected in the network. You can click on the following link to know how to map the drive:
    How to create a shortcut to map a network drive

  • Override "crtl + tab" key behaviour with "tab" key for JtextArea .

    I am trying to override the "crtl + tab" key behaviour for JTextArea with "tab" key plus add my own action. I am doing the following.
    1. Setting Tab as forward traversal key for the JTextArea (the default traversal key from JTexArea is "crtl + Tab").
    2. Supplementing the "crtl + Tab" key behaviour with my custom behaviour.
    For the point 2 above, I need to get hold of the Action represented by the "crtl + Tab" key so that I could use that and then follow with my own custom action. But the problem is that there is no InputMap entry for "crtl + tab". I dont know how the "crtl + tab" key Action is mapped for JTextArea. I used the following code to search the InputMap.
                System.out.println("Searching Input Map");
                for (int i = 0; i < 3; i++) {
                    InputMap iMap = comp.getInputMap(i);
                    if (iMap != null) {
                        KeyStroke [] ks = iMap.allKeys();
                        if (ks  != null) {
                            for (int j = 0;j < ks.length ;j++) {
                                System.out.println("Key Stroke: " + ks[j]);
                System.out.println("Searching Parent Input Map");
                for (int i = 0; i < 3; i++) {
                    InputMap iMap = comp.getInputMap(i).getParent();
                    if (iMap != null) {
                        KeyStroke [] ks = iMap.allKeys();
                        if (ks  != null) {
                            for (int j = 0;j < ks.length ;j++) {
                                System.out.println("Key Stroke: " + ks[j]);
                }In short, I need to get the Action associated with the "crtl + tab" for JTextArea.
    regards,
    nirvan.

    There is no Action for Ctrl+TAB. Its a focus traversal key.

  • Does iCloud Make Pop Mail Act like IMAP?

    I have basically 1 main question, but 2 different scenarios I'm dealing with - one personally for my mail and the other for my boss.
    Though a longtime Mac user, I am new to using Mountain Lion, iPhone, iPad and iCloud and historically I have always had numerous email accounts in Mac Mail set up as POP and countless elaborate folders that I file and keep all my old emails in for reference.
    When buying my new iMac with ML, the one thing I have not yet done is turn on iCloud for mail.
    If I am understanding how this works (before I do it and create a nightmare of duplication on my iPhone & iPad, etc), if I continue to create my email accounts as POP on my new ML iMac, with their various folders, etc., and turn on iCloud for mail, will it simply reflect on my other devices all the same email accounts and folders and in essence act like an IMAP account in that if you move or delete a piece of mail on one device it will do so on all the devices?
    I not only need to sort this on my computer, but my boss'.  She currently only uses gmail and has all these same devices but they are set up as IMAP and iCloud is turned on and she has mass duplication that is unbearable.
    I am thinking it would be best for me to make her gmail account set up as a POP account and keep iCloud turned on and it will basically eliminate the gmail replication but still allow her devices to all be in sync and have action on one device be seen on all the others.
    This would allow me to create folders for her on her computer in Mac Mail and not use the folder system in gmail at all.
    Am I understanding this correctly?  Hope I'm making sense!
    Thanks so much!

    Hi Glenn:
    Thanks for your response.  I do understand what IMAP does, and I do purposely want all my emails POP so they are downloaded as localized on my computer.
    But where the confusion is for me is iCloud.
    There is "iCloud mail" which I DO NOT WANT.  I don't need yet another mail account.
    I mean "turning on" iCloud for your existing mail.  The way you can turn it on for Calendar, Contacts etc. in Systme Preferences>iCloud> check Mail.  Right now I do not have this checked on my iMac and I actually set up only one of my email accounts on my iPhone as a POP.
    I was hoping that if I organize my email POP accounts the way I want on my iMac and file the various emails into whatever folders, that if I "turned on" iCloud, that it would reflect the same on my phone.  If not, I will not add these accounts to my phone, as I don't want all that on my phone. 
    I like being able to glance at an email on the phone if I'm in town and be able to delete it, but still know its waiting for me to actually deal with and/or file when I get back to my main computer.
    I monitor over 100 email accounts, some mine, but many for business clients and this is why I don't want my phone clogged with all this.  But if turning on iCloud would mimic my iMac mail, then I could just file the emails on the Mac and know they are there in the phone (and I wouldn't delete them on the phone, as it would delete them on the Imac).  Hope this is making sense!
    In my boss' case, she has the reverse issue.
    Someone in the UK set up her iPad, iPhone and laptop with Gmail - her only email account.
    It is IMAP.  They also turned on iCloud (not @icloud mail) and what she has is not only the duplicates caused by Gmail IMAP settings (which you have to remove in Gmail Settings so you don't have the dual Inbox and Gmail "All Mail" inbox on your devices, but to make things more complex for her, she has a Portuguese iPhone and a US iPhone (rather than just swapping SIM cards).
    What I hear all day long is "why do I have all these duplicate emails"  "where did everything go I was just looking at?"  yadda yadda yadda.
    She has her Inbox which has 2000 unread emails sitting in it and her "All Mail" with even more.  Its a mess I want to clean up but don't want to do the wrong thing without fully understanding here what would happen.
    I was hoping that "turning on" iCloud for your MacMail would actually reflect on your devices the same folders and accounts, in which case I could change her Gmail to a POP account and make folders for her and simply have them reflected on her devices once.
    But is turning on iCloud in Syst. Pref for Mail doesn't do that, it won't work.
    Thanks!!!!

Maybe you are looking for