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/>

Similar Messages

  • Enter key press instead of tab key

    I want to use enter key Instead of tab key in my page to move to next item
    Please answer in detail steps because i am new to apex and especially to Javascript

    I strongly advice against using an app like this.
    I always play by the rule not to re-invent the wheel.
    Try to convince the user from the new possibilities and the fact that tabbing is a default procedure.
    You'll see that this will be easier than actually programming the enter-key to act like the TAB key.
    I you really need to do this, then you'll need to do something like this
    http://thinksimply.com/blog/jquery-enter-tab
    good luck!
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • 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

  • 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

  • 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

  • How to use the Function keys as function keys instead of action keys?

    When I press F1 or any of the other F keys it does what the symbol says on the key (volume/skip track etc).
    How do I actually use the F keys and not the symbols?

    Hi again John,
    ...is there a way to switch that around so I use the "fn" key for sound etc?
    Do the following:
    1. Fire up System Preferences
    2. Select Keyboard & Mouse
    3. Select the Keyboard tab.
    4. Tick the "Use all F1, F2, etc. keys as standard function keys" box.
    That's it. You have now reversed the default use of the function keys. If you need to increase/decrease sound, brightness etc then press 'fn' plus the appropriate function key.
    Kryten

  • 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.

  • EXS24 : how can I launch and stop sound with key (instead of holding key)

    Hi,
    I'm using EXS24 to launch sounds (like pads) : I've created a specific instrument with one sound on each note (with differents zones). I've checked the box "One-" to have the sound that continues without holding the key, but I would like to be able to stop the sound with the same (or an other) key.
    WIthout stopping the other sounds.
    How can I do this ??
    Thanks for your help !
    Etienne

    You can make groups, have your "sample off" key assigned to a short audio file of silence (or just turn the volume parameter of that sample to -96 in the zone editing area of the EXS.
    Make the polyphony of the groups to 1. So you hit your one shot and it is playing through, when you hit the 'blank' key it plays instead - which is playing nothing.
    Depending on what you need, you can copy the blank sound into different groups (hold option and drag) - but this would stop all groups with one key. So if you need independent control, you can copy the same blank sample to different keys, and then group those individually with the different sample triggers.

  • Make enter key work as tab in apex

    Hi ,
    I have one form it contains 15 fields . to navigate from one field to next field i have to use enter key instead of TAB key.
    is there any solution.
    Thanks
    Sagar

    Hello Vikram,
    Big Fan of you, you've helped me a lot in my query hope you'll do so this time too
    need help here :make enter key work as tab in apex
    $(document).ready(function() { $('input').keydown( function(e) { var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; if(key == 13) { e.preventDefault(); var inputs = $(this).closest('form').find(':input:visible'); inputs.eq( inputs.index(this)+ 1 ).focus(); } }); });
    This works fine on tabular forms if there are existing records but as soon as I hit add rows hitting enter does not move the cursor, can you help 

  • How to disable the Tab key?

    Hi,
    Usually,the most end users select partners name or code by the Tab key or pickers, how can I disable Tab key? I want users to select a partner by user-defined values.
    Best Regards!

    Hi,
    We donu2019t have a provision for disable the tab key in B1.
    If you are assigning user defined value in any field, magnifying class will be displaying.
    You should give a KT to end user that donu2019t use tab key, instead of tab key please click on magnifying class in those filed.
    Thanks and Regards,
    Senthil Maruthappan.
    Team Work Never Fails
    Edited by: Senthil Maruthappan on Jul 4, 2009 11:16 AM

  • Enter instead of Tab

    Hi.
    Tell me, please,
    I need to replace pressing Enter on pressing TAB.
    How best to do this using the ADF?
    (I need to move between the components by pressing the enter key)
    Thanks.

    User, please tell us your jdev Version!
    You can use javascript for this. Write a function which exchange the enter key with the tab key. This method you call from each text field. A smoke for such a method you find here
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf
    Look for 'How-to filter table filter input to only allow numeric input' in the doc.
    You have to change the method to your needs but get the picture.
    Timo

  • Problem in Tab Keys

    Hi
    I am trying to write a KeyListener that can detect when the tab key is pressed within a JTextField. The Listener detects all keys accept the tab key. It seems that some lower level method is consuming the key before it get to my listener.
    My application needs to put up a dialog if the tabs out of the text field.
    Any help would be appreciated.

    Hi,
    Yes, there is a lower-level method that dispatches all events generated from a component and sends the events to the appropriate listener for that component.
    You need to subclass JTextField and override processKeyEvent(KeyEvent key). Any type of key event generated from this component, this method will dispatch the event to all of this components key listeners, so there will be some processing that blocks the TAB key.We can override the method and perform our own processing, and then call super.processKeyEvent(KeyEvent) to handle all other key events other than TAB.
    Try the below code this showa how to catch the TAB key .
    class CustomTextField extends JTextField {
    public CustomTextField( int c){
    super(c);
    protected void processKeyEvent(KeyEvent ke){
    if( ke.getKeyCode() == KeyEvent.VK_TAB)
    System.out.println("TAB");
    //you must call this!!
    super.processKeyEvent( ke);
    Hope this will help you.
    Anil
    Developer Technical Support,
    Sun Microsystems Inc,
    http://www.sun.com/developers/support

  • How to alter behaviour of pressing enter key to tab key?

    Hi! I want to alter the behaviour when pressing the enter key so it acts like pressing the tab key in a JTextField. That is pressing the enter key will transfer the cursor to the next field instead of the cursor just staying in the current field.
    Thanks in advance.
    rralilin

    Hi,
    there are more than one way to do this:
    1. use an ActionListener and transfer the focus in its actionPerformed(...) method - good for one or a few JTextFields - if there are more, try ...
    2. prelisten the key events via the new KeyboardFocusManager und replace the corresponding key event by a Tab-key-event and redispatch it - this approach enables you, to handle this new behavior for all JTextFields in one central position - possible since JDK 1.4
    Hope, this helps
    greetings Marsian

  • Making ENTER key act as a TAB key.

    I have a version problem that I could not solve. My goal is using ENTER key as TAB key.
    In java version 1.3.X my code is working properly.It is like the code below
    public void keyPressed(KeyEvent e) {
    if(e.getKeyCode() == KeyEvent.VK_ENTER) e.setKeyCode(KeyEvent.VK_TAB);
    In java version 1.4.X it is not working. Can anybody help me please?

    Thanks a lot. It is really a good document that everybody should read.
    I have copied some portion of it for others searching about this topic.It is below.
    KeyListeners installed on Components will no longer see KeyEvents that map to focus traversal operations. Previously, AWT Components saw these events and had an opportunity to consume them before the AWT initiated focus traversal. Code that requires this functionality should instead disable focus traversal keys on its Components and handle focus traversal itself. Alternately, the code can use an AWTEventListener or KeyEventDispatcher to pre-listen to all KeyEvents.

  • JButton gains focus when Hitting tab key but hitting Enter has no effect.

    Hi,
    I have a program that has two buttons. When pressed, using the mouse, the buttons text appears in the middle of the screen. I have NOT alerted the focus subsystem. Thus when I press the tab key the buttons are highlighted in turn, to indicate that they currently have focus. However if I press enter the buttons actions (to update the middle of the screen with it's text) does not get activated.
    I am using 1.4.2 on a Windows machine.
    any help on this would be much appreciated !!
    The code is as follows:
    package com.logicacmg.skynet.tms.mmi.ui;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Container;
    public class Test implements ActionListener
    JButton bTwo = new JButton("button 2");
    JButton b = new JButton("button 1");
    JLabel label = new JLabel(" ");
    /** Creates a new instance of Test */
    public Test()
    JFrame frame = new JFrame();
    //Create a panel to hold the MMI screens.
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BorderLayout());
    b.addActionListener(this);
    bTwo.addActionListener(this);
    mainPanel.add(b, BorderLayout.WEST);
    mainPanel.add(bTwo, BorderLayout.EAST);
    mainPanel.add(label, BorderLayout.CENTER);
    //add the main panel which contains the screens and the status bar
    //to this frame.
    Container contentPane = frame.getContentPane();
         contentPane.add(mainPanel, BorderLayout.CENTER);
    frame.pack();
    frame.setVisible(true);
    public static void main(String [] args)
    new Test();
    public void actionPerformed(ActionEvent e)
    JButton aButton = (JButton)e.getSource();
    if(aButton == b)
    label.setText("one");
    else if(aButton == bTwo)
    label.setText("Two");

    Which plaf are you using? Because when I switch to the windows plaf, the behavior is what you describe.
    Demo:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) {
            final JFrame f = new JFrame("button focus");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            ActionListener al = new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    System.out.println(evt.getActionCommand());
            Container cp = f.getContentPane();
            cp.setLayout(new FlowLayout());
            for(int i=0; i<3; ++i) {
                JButton btn = new JButton("Button " + i);
                btn.addActionListener(al);
                cp.add(btn);
                if (i == 1)
                    f.getRootPane().setDefaultButton(btn);
            final JCheckBox laf = new JCheckBox("platform plaf");
            laf.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    String cls = laf.isSelected() ? UIManager.getSystemLookAndFeelClassName() :
                      UIManager.getCrossPlatformLookAndFeelClassName();
                    try {
                        UIManager.setLookAndFeel(cls);
                        SwingUtilities.updateComponentTreeUI(f);
                    } catch (Exception e) {
                        e.printStackTrace();
            cp.add(laf);
            f.pack();
            f.setVisible(true);
    }

Maybe you are looking for

  • Upload of Contracts and Pricing agreements from CRM to R/3 ?

    Hi As per SAP we cannot upload contracts from CRM to R/3. However, has anyone uploaded contracts to R/3. If yes, can you please reply with the steps involved ? Your help is highly appreciated. Sandy

  • Sap daily backup error

    hello experts,                            in that sap the daily backup of sap production server due to error during initialization for the error.one hour before take os level nt backup.then next take the sap daily base back up. profile :initmpc.sap r

  • DOUBT ABOUT MASTER DATA

    Hey guys!!! I have a doubt about master data, i need to add an atribute to a master data characteristic, do i have to erase the data to do this or can i add the atribute without erase the data? Thanks and Regards!!

  • Battery detoriates very fast in new MBP with Leopard installed

    My just obtained MBP (3 days old) seems to have a peculiar problem. I started 3 days ago with the calibration cycle as advised by Apple. Now 4 cycles later only 87% of battery capacity is left. The battery drains during normal operation within 1.5 ho

  • Replicate Plugins DS 5.2

    I'm a starter to LDAP and want to know how to create a new plugin from a existing one. I want to replicate uid uniqueness plugin to work as email uniqueness so that I can use two plugins uid and email uniqueness. I'm using DS 5.2 Please help !