Make ENTER key function same as CTRL+F11 when in Query mode

I have a basic form I'm creating in Oracle Forms 6i.
When the form is in QUERY mode, I would like to make the enter key on the user's keyboard function the same as CTRL+F11 (execute the search).
Is this possible to do without modifying the key mappings file (.res)? Or would you have to make a change to this file in order to accommodate this capability?
Thanks,
Jeremy

You could write your own Key-Enter trigger at the Form level. Key-?? Triggers will fire in "Enter Query" mode, so you will have to check the Mode in your code. Something like:
/* Sample Key-Enter trigger */
BEGIN
   IF :System.Mode = 'ENTER-QUERY' THEN
      Execute_Query;
   ELSE
      ENTER;
   END IF;
END;Personally, I would educate the users to use the Ctrl-F11 keys rather than make a key stroke multi-function. What if they try to use the Enter key for navigation while in Enter-Query mode?
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Aug 24, 2010 11:34 AM

Similar Messages

  • 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 make ENTER key in internet explorer run the  BIP report?

    In BI publisher 11g, users wanted that after entering the values for the parameter, they hit the ENTER key ( on the keyboard)  and the report should run .
    In Mozilla firefox, when I hit ENTER key on the keyboard report runs fine... but in Internet explorer, it does not ( infact in internet explorer TAB key works)
    How to make ENTER key in internet explorer run the report?
    Thanks
    Ashish

    Perform the following steps and tell us if it  resolve this issue:
    1. In Internet Explorer, click Tools, and then click Internet Options.
    2. Click the Security tab.
    3. There are four security zones listed:
    * Internet
    * Local intranet
    * Trusted sites
    * Restricted sites
    Click the zone being used by P6, which is noted at the bottom right hand corner of the browser window when the P6 URL is being accessed.
    4. Under Security level for this zone, click Custom Level.
    5. Under Downloads, under Automatic prompting for file downloads, click Enable, and then click OK two times.
    6. The browser will need to be restarted for the change to take effect.
    Refer to the following Microsoft Knowledge base article for additional file download and active x controls which should also be enabled: http://support.microsoft.com/kb/883255

  • 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

  • Treat enter key the same as clicking button without using javascript

    I have a page with a search on it. I would like to let the user press the enter key, and have it be the same as if they clicked the search button.
    I figure I could do this with javascript, but I'm wondering if there's an easier way.
    3.2.
    Edited by: tharpa on May 5, 2011 7:33 AM

    Tharpa,
    You can make your search field a text field with submit. This will submit the page and make the request the name of the item when the user presses enter while this field has focus.
    I cannot currently look at a 3.2 instance and be more descriptive about how you can do this, but if i remember correctly it was a sub option of the text field.
    Thanks,
    Tyson Jouglet

  • Xmodmap - Make Letter Keys Function as Modifer Key as well

    Peace all!
    In an effort to make the keyboard easier to use, I'm thinking of binding modifer keys to letters on the home row. The idea is, when you're typing normally, typing one letter at a time, the key merely outputs letters. But when you hold the key and press another, it acts as a modifer. For example, you can bind the letter "f" to Control as follows.
    .Xmodmap
    add Control = f
    Then each time you need to execute a function key like Ctrl+A, you simply hold the "f" key and press "a". This would be much faster than stretching your finger all the way to the Ctrl key.
    However, there are some glaring problems. When I hold the key to use it as a modifer, the letter "f" gets outputted as well. Is there a way to somehow configure Xmodmap to output "f" only upon release of the key?
    Thanks in advance!

    navigate to this
    Control Panel\All Control Panel Items\Ease of Access Center\Make the keyboard easier to use
    then make sure to turn sticky keys off by unchecking it
    try that

  • Make num keys function as arrow keys

    my left arrow key is not working so i'm wondering if there's a way to make my number keys function as arrow keys. i'm using an apple keyboard with numeric keypad on os x 10.6.8 (late 2009 imac)
    thanks

    Laptops map the keyboard differently as they are also
    using the F1-F12 keys to control screen brightness,
    speakers, etc. To access FCP specific uses, you need
    to hold down the FN key in the lower left as a
    modifer.
    Since this a pain in the butt you may want to do
    this:
    Open up System Preferences
    select Keyboard & Mouse
    select the Keyboard item on the bar
    click on "Use the F1-F12 keys for custom actions"
    close.
    This should return your function keys to 'normal'
    operation. Now if you want to brighten or dim your
    screen, hold down the FN key (lower left of the
    keyboard) to modify the F# key.
    good luck.
    x
    Thanks a lot! This resolved the problem!
    I appreciate all the time you people are putting in helping me and others

  • Shouldn't this Enter Key do same as Tab key?

    I am trying to have the Enter key switch the focus between these 2 JTextField. (like the Tab key), but I can't get it to work.
    Any advice, please?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class TestGUI extends JFrame{
         JPanel panel = new JPanel();
         JTextField field01 = new JTextField("Test 1");
         JTextField field02 = new JTextField("Test 2");
         TestGUI(){
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              panel.add(field01);
              panel.add(field02);
              getContentPane().add(panel);
              field01.setBounds  (125,120,23, 50);
              field02.setBounds  (100,120,23, 50);          
              setBounds(200,50, 300, 300);
              KeyStroke tab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
              KeyStroke enter = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
              InputMap im = field01.getInputMap(JTextField.WHEN_FOCUSED);
              im.put(enter, im.get(tab));
              addWindowListener(new WindowAdapter() {
                   public void windowActivated(WindowEvent e) {
                        field01.requestFocusInWindow();
              setVisible(true);
         public static void main (String[] args){
              new TestGUI();
         

    But how could I get rid of the warning for unchecked operations, when I am compiling it?
    Set<AWTKeyStroke> keystrokes = new HashSet<AWTKeyStroke>();And if you have more than two fields on the panel which all should react to <Return>, use setFocusTraversalKeys(...) once for the panel; there's no need to attach it to each field.
    And there's no need to add a windowListener to place the cursor. Just put the line
    field01.requestFocusInWindow();after setVisible(true);

  • Enter Key works same as button click

    .

    Tharpa,
    You can make your search field a text field with submit. This will submit the page and make the request the name of the item when the user presses enter while this field has focus.
    I cannot currently look at a 3.2 instance and be more descriptive about how you can do this, but if i remember correctly it was a sub option of the text field.
    Thanks,
    Tyson Jouglet

  • Make "esc" key function consistent between AI and PS.

    In AI "esc" closes the current Symbol or Isolation mode editing session and retains all changes. In PS "esc" CANCELS the current Filter session WITHOUT saving changes. This is a horrible inconsistency between sister programs and should be standardized. Adobe, just make up your mind which it is and users will adjust. At least it will be consistent!

    I logged onto the Adobe forums to point out this exact issue -- I'm so glad I'm not alone! I'm used to it in Illustrator, but it's really messing up my PS workflow; almost lost a lot of progress because I forgot ESC no longer cancels the text changes. I might have to go back to CS6 until there's a solution.
    Begging you, Adobe team, please revert it or at the very least give us a preference option. The mockup above would be perfect!

  • F11 and ctrl+F11 not retrieving the last search

    I have created a form in oracle 10g.where F11 is enter-query and ctrl+F11 is execute-query.
    Every time its working fine.When ever I give any input and press ctrl+F11 its being executed and then if I press F11 then going to enter-query mode.
    But my problem is :-
    If I open the form and without giving any i/p I press F11 and ctrl+F11 consecutively then it should show the last search.While in my form its just asking to select a new search/query.

    Thanks a lot for the suggestion..
    First  queried in the form,then without closing that in the same session I pressed F11 twice.
    But I am getting an error-
    FRM-41009: Function key not allowed. Press %s for list of valid keys.
    I have checked function key mapping its alright-F11:= enter query.
    I have given some messages to check the mode of the form at different position.
    I have key-entqry:-
    begin
        if :system.mode != 'ENTER-QUERY'  then
           go_item('blk1.leverandoer_kode');
        end if;
    message(:system.mode);pause;   -------------------> mode= NORMAL
      clear_form(no_validate);
      go_block('BLK1');
    message(:system.mode);pause; -------> mode= NORMAL
                         -------------> Here it prompting to enter F11 or cntrl+F11 again; Pressing F11
                         --------------> Here the error is coming (frm-41009) twice.
      enter_query;
      message('after enter');pause;                          -----------> Then its shoing this message
    message(:system.mode);pause;                       -----> mode= Enter-query
       end;
    Please help me out.

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

  • Make Enter work as Tab in Flex DataGrid

    Hello!
    I'm trying to make Enter work the same as Tab in a DataGrid -
    commit changes to the edited cell and move focus to the next one to
    the right, then next row, etc.
    I've tried to use something like:
    focusManager.getNextFocusManagerComponent(true).setFocus();
    or
    focusManager.moveFocus(FocusRequestDirection.FORWARD);
    but I cannot seem to make it work in a DataGrid...
    Any help would be much appreciated!
    Thank you!
    Sergey

    in keyup event of the grid, try something like:
    public static function focusCell(columnIndex:int,
    dg:DataGrid) : void {
    dg.scrollToIndex(dg.selectedIndex);
    var focusedCell:Object = new Object();
    focusedCell.rowIndex = dg.selectedIndex;
    focusedCell.columnIndex = columnIndex ;
    dg.editedItemPosition = focusedCell;
    }

  • 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

  • Detecting Enter key while textbox has focus....

    It seems like in CS5 while using the tlf textfield that when the focus is in the textfield that the keyboard.enter key is not fired. However, outside it is. If I set my tab index to add the "login" button as the third tab index then the enter key works fine. But sometimes when I'm filling out a form when I'm in the last textbox I just hit enter. What's the workaround to have the enter key fired while focus is in the textfield?
    Thanks,
    C

    It seems like in CS5 while using the tlf textfield that when the focus is in the textfield that the keyboard.enter key is not fired. However, outside it is. If I set my tab index to add the "login" button as the third tab index then the enter key works fine. But sometimes when I'm filling out a form when I'm in the last textbox I just hit enter. What's the workaround to have the enter key fired while focus is in the textfield?
    Thanks,
    C

Maybe you are looking for