Combine ctrl+shift key (how)?

how to combine two keys at a time (like ctrl+alt) on button in action performed methode can any one make me understand by giving some small ex.

This thread shows how to assign Actions to KeyStrokes Ctrl+1 and Ctrl+2:
http://forum.java.sun.com/thread.jsp?forum=57&thread=193192
If you want to use Alt+Ctrl then use this line:
KeyStroke ks2 = KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.CTRL_MASK + KeyEvent.ALT_MASK);

Similar Messages

  • In bookmarks under "Organize bookmarks ctrl+shift+B" How do I narrow the bar by eliminating the ctrl+shift+B?

    In bookmarks the first line is "Organize Bookmarks ctrl+shift+B" How do I narrow the whole bar by eliminating that last part (ctrl+shift+B)?

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #bookmarksMenuPopup .menu-accel-container {display:none!important;}</nowiki></pre>

  • CTRL+UP, CTRL+SHIFT keys suddenly inoperable in Forte 3.0

    The other day, my ability to move around the editor screen became severely impaired when certain key combinations suddenly did nothing:
    CTRL+RIGHT (used to jump to the beginning of the next word)
    CTRL+LEFT (used to jump cursor to the end of the last word)
    SHIFT+UP (used to select text above)
    SHIFT+DN (used to select text below)
    Anyone know how to re-enable this? It still works in other applications, but not Forte!

    Same issue here. Pulled down Away3d 4 and altered one of the demos to work with mouseLock and FullScreenInteractive. Tracing keycodes on keyup does nothing for SHIFT.

  • How to disable ctrl,shift while drag and drop

    after starting the drag, i donnot want the user to change action with ctrl & shift. how can i do that?

    The Error Console click is visible in Tools of FireFox 3.6.8. Against it is mentioned the shortcut key Ctrl+Shift+J. How can I do away with this shortcut key? If I want to see the Error Console, I can click at it. This shortcut key of FireFox is interfering with this very shortcut key on InfraWare Transcription Client 2009 on which I work online and which is set to run on Internet Explorer only.
    I thank you for asking me to go through a whole gamut of an article on Key Configuration much of which is Greek to me. I am getting nowhere doing that.

  • KeyLocation bug in KeyboardEvent.KEY_UP for shift keys

    Hi There everyone
    I have discovered a bug with KeyboardEvent.KEY_UP keyLocation values for the shift keys.
    how to reproduce this :
    1.when no other keys are down the value for left shift is 1 and for right shift is 2 for  KeyboardEvent.KEY_DOWN and  KeyboardEvent.KEY_UP
    2. when you have pressed shift and then press another key -  when releasing shift the value for left and right become 0.
    There is absolutely no reason why these values should report anything other then what they initially reported on key down as each key fires its own event with details for each , regardless of any key combinations.
    Im using cs5.5 windows 7 basic.
    can anyone else verify this so a bug can be logged?
    Thanks

    var isActivateKeyListener:Boolean = false;
    function activateKeyListener($state:Boolean) {
    if ($state) {
    if (!isActivateKeyListener) {
    isActivateKeyListener = true;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
    }else {
    if (isActivateKeyListener) {
    isActivateKeyListener = false;
    stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
    function keyPressed(event:KeyboardEvent):void {
    trace("keyPressed: event.keyCode:" + event.keyCode + " charCode:" + event.charCode + " shift:" + event.shiftKey + " keyLocation:" + event.keyLocation)
    function keyReleased(event:KeyboardEvent):void {
    trace("keyReleased: event.keyCode:" + event.keyCode + " charCode:" + event.charCode + " shift:" + event.shiftKey + " keyLocation:" + event.keyLocation)
    activateKeyListener(true);

  • Focus Travel in the JInternalFrames (ctrl+tab and ctrl+shift+tab)

    hi ,
    i have a JFrame inside which i have a JInternalFrame.
    in this JInternalframe I have 4 JPanels when I click ctrl-tab from a JFrame the focus should go to
    next panel'sand similar for other panels vice-verse ctrl-shift-tab .
    how to achieve this .
    looking for help.
    Thanks in Advance

    According to my [Key Bindings|http://www.camick.com/java/blog.html?name=key-bindings] program those keys are already mapped to the next/previous frame Action.
    However, the problem seems to be that the KeyboardFocusManager is intercepting the KeyStroke so you need to remove those KeyStrokes from the focus traversal set. I don't know how to do that, but you can create a new set:
    Set set = new HashSet();
    set.add( KeyStroke.getKeyStroke( "TAB" ) );
    frame.setFocusTraversalKeys( KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, set );You will need to use similiar code for the backward traversal keys.

  • Selcting Multiple  CheckBoxe in a JTREE without holding CTRL / SHIFT

    HI,
    My JTree is having JCheckBOxes as nodes .... Now the problem is i want to select multiple nodes (checkboxes) with out holding CTRL/SHIFT key .
    Please help regarding this issue ..
    The code of my renderer class is as below:
    * MyTreeRendered.java
    * Created on April 27, 2006, 7:42 PM
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.*;
    public class MyTreeRendered extends DefaultTreeCellRenderer  {
        private JCheckBox cb ;
        /** Creates a new instance of MyTreeRendered */
        public MyTreeRendered() {
        public Component getTreeCellRendererComponent(
                            JTree tree,
                            Object value,
                            boolean sel,
                            boolean expanded,
                            boolean leaf,
                            int row,
                            boolean hasFocus){
           if(cb == null) {
               cb = new JCheckBox();
               cb.setBackground(tree.getBackground());
           DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
           cb.setText(node.getUserObject().toString());
           cb.setSelected(sel);
           return cb;
    }

    These are the methods which seem to define that behaviour:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/basic/BasicTreeUI.html#isToggleSelectionEvent(java.awt.event.MouseEvent)
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/basic/BasicTreeUI.html#isMultiSelectEvent(java.awt.event.MouseEvent)
    You'd have to write your own TreeUI and override them.

  • Selecting multiple nodes of a tree through ctrl+shift

    Can i select multiple nodes of a tree through ctrl+shift.
    How??
    Thanx

    Take a look at JTree#getSelectionModel() and TreeSelectionModel#setSelectionMode(int).
    _myTree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);

  • Mission control is activated by my shift key even though i have it set to ctrl, up. how do i make it stop? i can't capitalize anything without using the right shift key.

    in playing with key commands to activate mission control in the system preferences i have somehow made my left shift key one of the keys to activate it even though it does not show it in system preferences. i need my left shift key for typing and having mission control come up all the time is a pain! how do i make it stop?
    I evidently didn't leave system preferences properly or something. I fixed it by going back to system preferences and changing the keyboard shortcuts to "-" then quitting system preferences by command Q. Then I went back in and reset the mission control setting to us cntrl, up and then command Q and now it all works fine.

    Check out [https://bugzilla.mozilla.org/show_bug.cgi?id=1008706 bug 1008706]. It's related to safe browsing, and is a known issue.

  • Firefox crash when change language with ctrl + shift how to fix it

    I know that there is key combinations in firefox starting with ctrl + shift. I wonder how to disable this combinations instead of language change

    It would be better to disable the Ctrl+Shift combination to rotate the installed languages and instead assign the specific key sequence (Alt/Ctrl+Shift+number) to select each keyboard layout to avoid such issues.

  • Some keys don't work in combination with Shift

    Okay  so I have the Pavilion Sleekbook  15-b011nr 
    Serial Number:   [Personal Information Removed]
    Product Number:   C6N92UA
    and today I noticed certain keys don't work in combination with the left Shift for example, Shift+S (both left and right), Shift+M, Shift+Z, Shift +X, Shift+C don't work, shift+F does work but gives me this FV. same with j it gives me JM instead. I installed an updated bios, ran a diagnostic test using F2 and under the compenant test for the keyboard it failed and gave me this
    keyboard test failed
    failure Id # U375BD-6m96P5-MFPX1F-G03B03 
    product id # C6N92Ua#aba
    now while trying to type all this I found other letters now working as well as me not being able to input the semicolon with either shift key. frustrating since I got this laptop in June so it's still under warranty. Has anyone else encountered this problem and if so how do i fix mine? I'm pretty tech savvy so feel free to let me know, or is my only option is a replacement from HP?
    Thanks!

    Hi hzapata, I know that it work fine, after Load preset, but why You lost the default configs?
    Is this my question to Smit.

  • CTRL, ALT and SHIFT keys are sticking (not physically)

    I am having a problem with the T-61p I have been using for 2 years now.
    About once every 2 days Windows thinks that either the CTRL, the ALT or the SHIFT key is held down.  I only notice this when my mouse's left click or my arrow keys starts behaving funny (like opening dialogs when clicking on icons or highlighting text on a page in MS Word) instead of moving the cursor as they should.
    When this starts happening, pressing the CTRL, ALT and SHIFT buttons causes the strange behavior to stop.
    None of the keys are physically stuck down.  I am using an external keyboard with my laptop closed and docked.  I have tried switching keyboards, and I get the same results with brand new Logitech keyboards.
    What could this be?  Has anyone seen this problem before?
    Your help is much appreciated.

    Welcome to the forum!
    It sounds like you've inadvertently turned on the Sticky Keys accessibility feature.  Since you didn't mention which operating system you're using, I can't tell you how to turn it off.  Trying searching for Sticky Keys in Help in the Start button menu.
    Hope this helps!
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • CTRL SHIFT "some other key" question

    I am trying to do something similar to the CTRL-SHIFT-F1 keyboard shortcut to show the Swing/AWT hierachy, however I want to display this in a graphical form (I know how to do that part), but I am having problems implementing the keyboard shortcut part.
    Cound someone point me in the right direction, how do you specify a keyboard handler for the whole window ?
    Thanks

    Add the key listener to the main Frame or main JPanel.

  • Keys CTRL-SHIFT-EJECT puts screen to sleep, WI-FI too on ML!

    Hello, i used to use CTRL-SHIFT-EJECT on my MBP mid 2009 with Lion to put my screen to sleep while downloading stuff or performing other things. After i upgraded to ML, with the same combination of keys, my wi-fi turns off too and as soon as i hit any key to turn the screen on, i can see my wi-fi icon connecting and after about 2-3 seconds i get back online. Is that a bug or supposed to be so?

    up?
    Anyone?

  • What is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro

    I need to send a CTRL-BREAK key sequence to a router via console terminal. what is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro
    I can't seem to find any documentation on how to send a CTRL-BREAK sequence
    TIA

    In the Terminal application, select the 'Help > Terminal Help' menu item. In the help window that opens, click on the link 'Shortcuts for Terminal.' Scroll down to the line beginning 'Send break.'

Maybe you are looking for

  • Nearly give up, how to play RTSP / HLS / Smooth Streaming in Visual Basic Language

    I know there are so many samples for playing RTSP / HLS / Smooth Streaming, but it really lacks supporting Visual Basic language, i really struggling to convert from C++ / C# into VB without errors, maybe it would be easier if i can find some VB exam

  • Workspace URL without port number?

    Hello, Is there a way to config the Workspace URL to not use the port number for LCES with Webpshere 6.1 environment (e.g." http://localhost:/workspace/" instead of "http://localhost:9080/workspace/") due to the firewall configuration? Thanks, Han Da

  • How to move entire catalog and collection from old PC with PSE 4 to new PC with PSE 9

    I have read various answers regarding upgrading to new PC's using newer versions of PSE . All solutions seem to differ slightly. Can anyone give me a good path to follow for upgrading from PSE 4 on old windows XP PC to PSE 9 on a new Win 7 PC Any hel

  • Travel expense/reimbursement for non-employees

    Hi, We are in the process of reviewing Travel Management for implementation and would like to know if we can book travel expenses or reimbursements for non-employees (example: consultants, applicants who travelled to our company for interview, etc.)

  • T60 problems and drivers

    Hey guys, just joined the board. I have had a T60 widescreen for awhile now abut I finally got around to post my problems because it is starting to get really irritating. When I first got my laptop, I formatted it and tried to download all the driver