How to catch ctrl+tab key down

Ok, in the ItemEvent class or pVal we have a CharPressed property, for tab i'm getting a 9 character number but how can I detect if the user is pressing ctrl+tab button, I can't find any property that tells me if the user is presing control. I'm using SBO 2005....

Hi Giuseppe
It sounds like you are looking for the ChooseFromList Object. Look at the SDK sample code <i><b>SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList</b></i>. In the example they demonstrate using the ChooseFromList with CTRL+TAB as well.
Hope this will help.
Message was edited by: Louis Viljoen

Similar Messages

  • How to send Ctrl+Tab after ItemName in UI

    Dear Developer,
    I would like to know how can I send Ctrl+Tab key after ItemName column of system documents. I working on a alternative CopyTo function and I need to copy modified ItemName on document.
    I tried as:
    System.Windows.Forms.SendKeys.Send("^{TAB}")
    but withou luck.
    Anyone has any idea?
    Thanks in advance.
    Nghia

    Hi,
    Check the following threads they would be of help,
    Changing an Items Description in Sales Document using UI
    how to catch ctrl+tab key down
    The specified item was not found.
    Capture Combination Key Strokes (ctrl+tab)
    Vasu Natari.

  • Why i am unable to catch the 'TAB' key press?

    hi
    i have an application where i have 2 text fields and one button in order say t1, t2 and b1.
    on tabbing t1 cursor moves to t2 and on tabbing t2 cursor moves to b1 and on tabbing b1 cursor moves to t1.
    now when i press tab button on any of the component i have written a keyListener for that to catch 'TAB' key using the comparision
    if( e.getKeyCode() == KeyEvent.VK_TAB )
    but its not catching the tab key pressed on any of these 3 components....
    why like this...
    i want to catch the press of 'TAB' key and write some action for it... but unable to catch the 'TAB' key press.
    anyone could help me in this....
    thanx in advance,
    -Soni

    I seem to remember this question being asked before. I think the answer was that the FocusManager intercepts the TAB key. I don't remember the solution but you can try searching the forum.

  • 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

  • Catch Ctrl+Tab event

    Hi guys,
    I have created a UDO and I would like to be able to catch an event when the user presses ctrl+Tab in one of the matrix columns. How can I do this?
    Thanks,
    Costas

    On the KEY_DOWN event you can check for modifiers - something like this:
    if (pVal.CharPressed == 9 && pVal.Modifiers == SAPbouiCOM.BoModifiersEnum.mt_CTRL)
    Obviously you need to add conditions to check the event is happening on the matrix, and on the column you want.

  • How to recognize the tab key in a JTextField

    I have a drawing program with a main window and a tools palette, which is a JDialog. The tools palette has JToggleButtons and one JTextField. When you have the focus in the JTextField and you press tab repeatedly, it tabs through all the JToggleButtons and then back into the JTextField.
    However I would like to recognize the pressing of the tab key and ask for the focus to go back to the main window.
    I subclassed the JTextField, added a KeyAdapter, but it does not recognize the tab key. I also added the processKeyBinding method, but it doesn't recognize the tab key either.
    How can I recognize the tab key?
    Here is a self-contained test program that illustrates the problem:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AnanyaCurves extends JFrame
      Tools tools;
      public AnanyaCurves(Dimension windowSize)
        Basics.ananyaCurves = this;
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        setTitle("Ananya Curves");
        tools = new Tools(this);
      public static void main(String[] args)
        int toolsWidth;
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        toolsWidth = 200;
        Dimension windowSize = new Dimension(screenSize.width - toolsWidth, screenSize.height - 58);
        AnanyaCurves ananyaCurves = new AnanyaCurves(windowSize);
        ananyaCurves.pack();
        ananyaCurves.setBounds(toolsWidth, 0, windowSize.width, windowSize.height);
        ananyaCurves.setVisible(true);
        ananyaCurves.requestFocus();
      public void setVisible(boolean b)
        tools.setVisible(b);
        super.setVisible(b);
    class Basics extends java.lang.Object
      public static AnanyaCurves ananyaCurves;
      public Basics()
    class Tools extends JDialog
      JToggleButton btnGrid;
      JTextField textGrid;
      JPanel panel;
      public Tools(JFrame frame)
        super(frame, "Tools", false);
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        btnGrid = makeBtn("Grid");
        textGrid = makeTextField();
        panel = makePanel();
        pack();
      public JToggleButton makeBtn(String name)
        JToggleButton btn = new JToggleButton();
        btn.setMaximumSize(new Dimension(108, 24));
        btn.setPreferredSize(new Dimension(108, 24));
        btn.setText(name);
        btn.setFont(new Font("Verdana", Font.PLAIN, 11));
        btn.setMargin(new Insets(5, 10, 5, 10));
        btn.setOpaque(true);
        return btn;
      public ACJTextField makeTextField()
        ACJTextField textField = new ACJTextField();
        textField.setFont(new Font("Verdana", Font.PLAIN, 12));
        textField.setMaximumSize(new Dimension(108, 20));
        textField.setPreferredSize(new Dimension(108, 20));
        textField.setText("0.25");
        textField.setEnabled(true);
        return textField;
      public JPanel makePanel()
        JPanel panel = new JPanel();
        panel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
        panel.add(btnGrid);
        panel.add(textGrid);
        getContentPane().add(panel);
        return panel;
    class ACJTextField extends JTextField
      KeyAdaption keyAdaption;
      public ACJTextField()
        super();
        keyAdaption = new KeyAdaption();
        this.addKeyListener(keyAdaption);
      class KeyAdaption extends KeyAdapter
        public void keyPressed(KeyEvent event)
          int keyCode = event.getKeyCode();
          if (keyCode == KeyEvent.VK_TAB)
            Basics.ananyaCurves.requestFocus();
      protected boolean processKeyBinding(KeyStroke keyStroke, KeyEvent keyEvent, int int2, boolean boolean3)
        int keyCode = keyEvent.getKeyCode();
        if (keyCode == KeyEvent.VK_TAB)
          Basics.ananyaCurves.requestFocus();
          return false;
        return super.processKeyBinding(keyStroke, keyEvent, int2, boolean3);
    }Thanks for looking at this.

    Wow, Michael, you work like magic! Thanks so much! I would be happy to give you a commercial key to my Ananya Curves program also once the second release is on my website. It's a program for drawing curves in an easier way without pulling on tangent lines, with all control points right on the curve. Just send me an email to [email protected] if you are interested!

  • How to cycle (ctrl-tab) among zoomed images without changing position?

    As I often do, I have several similar images open and zoomed in to a particular position.  But when I hit ctrl-tab to cycle among them, the view keeps getting moved to the upper-left corner of each image.  This defeats the ability to quickly compare the same part of each image.
    Is there any fix for this?  I seem to remember solving this in the past, but I can't recall how.
    (Using CS3, soon to upgrade to CS4, but need fix in CS3 as well.)
    Thanks!
    ~G
    [Edited: I originally wrote CS2, but meant CS3]

    The [https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/ Tab Mix Plus] extension appears to have this feature, pictured in the screen shot here: http://tmp.garyr.net/help/#Events_-_New_Tabs

  • How to stop the "Tab Key" from acting as a "SEND" button in gmail

    Since installing the Firefox update today, when I hit the keyboard Tab Key in the course of composing an email on gmail, it sends the (!unfinished!) message. I need to disable this "feature". How?

    In the compose window if you hit tab you are tabbing through the buttons on the compose window. You have to hit space in order to sent the message. Please check to see if there is a feature in your gmail that is added to the default. Or see if there is an add on that has saved this feature. You can try safe mode to eliminate the add on theory [[Troubleshoot Firefox issues using Safe Mode]] and reset Firefox if it is a saved application preference.

  • How to make the TAB Key Event called

    Hi ,
    I want to make the tab key called twice when I hit on a button. It should jump to the next 2 cell.
    Thanks.
    DT

    Here's a couple related threads
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583877
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712386
    I'd also suggest exploring the Search Forums available on the left,
    which is how I found those threads:
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=focus+traversal+tab+text&subCat=siteforumid%3Ajava57&site=dev&dftab=siteforumid%3Ajava57&chooseCat=javaall&col=developer-forums

  • [Bug?] How to use the Tab key in forms

    Ahoy!
    The latest release of Photoshop has "broken" the native behavior of the Tab key in html panels. I'm not sure if this is a bug or just a new API I need to incorporate.
    Expected behavior:
    1. Focus into text field in a form
    2. Hit the Tab key
    3. The next field is focused.
    Actual behavior
    1. Focus into text field in a form
    2. Hit the Tab key
    3. Photoshop hides the application UI (Photoshop hotkey tab behavior).
    Anyone happen to know if there's something that can be done about this?

    Bug is very annoying for our users when they try to input their usernames and passwords to login (often) and also when they're filling out a large form with four fields in it.
    Hope it is fixed soon or a work around provided.
    Tom Wrenn
    Frontend Engineer
    CreativeWorx

  • How to catch IE7 tab change event in Java Applet?

    My applet have some modeless dialogs, When I start my applet with modeless dialog in tab1, if I swith to tab2, the modeless dialog of tab1 remains open.
    So I want to catch the tab change event, and set modeless dialog invisible when tab changes.
    Who knows the solutions.... Thanks

    To get to the IE7 browser, you'll have to go through JNI if you're using Java to get to a C level interface. You'll have to write the code to interface to it also. IE7 does not have a Java interface, inface, MS has a vested interest in not supporting a Java interface. You'll have to look up the IE7 developers docs to see the OLE interface you'll have to hit.

  • PUZZLER: How to assign the TAB key to a key command

    For the past 11 years I've had the TAB key assigned to "record toggle". But in L8 I can't seem to make this k/command assignment occur... Even when the learn function is activated in the k/commands window, whenever I hit the TAB key to assign it to the currently highlighted key command, it simply changes the focus of the cursor, moving it from the highlighted command to the search field.
    Looking for a clue... anyone?

    do you remember losing the function keys when tiger came out?
    Yeah, I remember losing F14 and F15. They still don't work. But I've since figured out that those keys are reserved for adjusting the brightness on various Apple laptops, and I think also some other models. However, it doesn't apply to someone like, er, um, me who has a desktop-model Mac and a 3rd-party monitor which doesn't have a brightness control that responds to... you guessed it, F14 and F15. So those keys are dead, 'cept for my modifier key variants.
    I tried importing my L7 prefs and sure enough, my L7 TAB assignment worked just fine. But I quickly reverted to my saved L8 prefs cuz I didn't want to take a chance of corrupting something or other because of an "illegal" key command assignment.
    So I guess it's time to find another key for "record toggle". TAB is going to be an 11 year-old habit that's gonna die hard, I can tell...

  • How to catch ctrl+x on a textfield?

    i've set ctrl-x as a shortcut to end my app but whenever my textfield holds focus, ctrl-x is disabled. how can i enable it? if i implement keylistener, where shld i define it in? keyPressed?

    KeyListener should be global throughout the program if CTRL + X is detected. Try programming it into the main contructor class of the java file the has the main() method within it. This way, the key will only be listened for when the JFrame is selected, if you are using a JFrame in the main class.

  • How to handle Shift+Tab key event

    HI,
    This is Ramesh.I have added KeyListener to JTable. I am handling key events through key codes. But I am
    unable to handling multiple key strokes like Shift+Tab
    Can any one please give me suggestion how can I do it
    Thanks & Regards
    Ramesh K

    i dont know about Key BindingsWhich is why you where given a link to the tutorial in the first response.
    can you please give me suggestion.You've been given the suggestion 3 times. You can decide to learn to write code the way other Swing components are written. Or, you can do it the old way. The choice is up to you.

  • ADF 10G : How to disable CTRL + Combination key ?

    Dear all,
    I developed ADF application using ADF 10.1.3 and have the requirement to prevent user from press the ctrl+ key ( like ctrl + p ) .
    Firstly , I used JavaScript to disable this function and it worked on IE and Chrome but not on Firefox.
    Actually, it work on firefox only the first time that user press ctrl key but when user press it again without reloading page , it is not worked.
    This is JavaScript that I used
    function disableCtrlKeyCombination(e)
                var isCtrl;
                if(window.event)
                    //IE
                     if(window.event.ctrlKey)
                        isCtrl = true;
                     else
                        isCtrl = false;
                else{
                    //firefox
                    if(e.ctrlKey)
                         isCtrl = true;
                    else
                         isCtrl = false;
                //if ctrl is pressed return false to disable
                if(isCtrl){
                   alert('Key CTRL has been disabled.');
                   return false;
                return true;
            }and I call this javaScript function with this code.
    <af:document title="test" id="document1"
                        onkeydown="disableCtrlKeyCombination(event)"
                        onkeypress="disableCtrlKeyCombination(event)">So, I think there are other way that we can do with this problem or I have to modify coding to support this functionality on FireFox Browser.
    Regards,
    zenoni

    Thank Frank and John,
    I tried to follow the instruction that you give me but result still be the same.
    I think the problem is not involve with javaScript because I can detect CTRL at the first time but the problem will occur in 2 cases.
    1 . It will occurs when user press ctrl button for the second time after we close alert box .
    2. when the page still shows alert message and user tried to press ctrl button ( ctrl+n and it worked)
    So, I think Firefox have some background process that monitor user input or have some thing .
    Regards,
    zenoni

Maybe you are looking for

  • Is there a way for a site owner to copy a custom calendar that resides on a site on one site collection to a site on another site collection?

    A user contacted me about copying and moving information from an old site that is being retired to a new site. The most important info is the department calendar. I don't see a way to use the "Manage content and structure" functionality to copy or mo

  • SUGGESTION: export with preset - custom subfolder name

    i've got various export presets set up in LR; for exporting to flickr, exporting for forums, exporting for print etc.  however, one thing that bugs me is that –at least as far as i can see– the export preset requires me to 'hardwire in' the name of t

  • Windows Server 2008R2 DC VHD backup wont restore new DC

    hello, I have been tearing my hair out on this, what we currently do is we backup the system state of our main DC and upload this to the cloud (Amazon s3) via a piece of software called Cloud berry system state / bare metal addition. the backup is of

  • Time Machine and .dmg files

    Ok, this isn't technically a TM issue, but I'm posting in here as it directly affects TM backups. I'm running OS X 10.5.2, and whenever I mount an encrypted disk image and open the disk image folder, the modified date of the disk image changes. This

  • ANN: New CMS system for PHP available

    WebAssist is proud to announce the release of PowerCMS, an easy-to-use, yet powerful, content management solution for PHP and MySQL. With PowerCMS, you can easily convert your static content into database-driven content--which can quickly be updated