CTRL-TAB moves the focus of the JTextArea even tho focus traversal keys disabled

Hi all

I hope someone can help me with this problem because I have tried everything I can think, I scoured Google, I'm exhausted and still completely stumped.
I have a JTextArea, for which I called setFocusTraversalKeysEnabled (false). I even did the following, but I don't think it's necessary:
setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null);
When I put the text in a window (JFrame) box, the expected happens - Ctrl-TAB does not move the focus.
HOWEVER, when I put two of these JTextAreas in a JSplitPane, Ctrl-TAB moves the focus to a TextField at the bottom of the window (outside the JSplitPane)!
I've confirmed with calls to getFocusTraversalKeysEnabled() that the keys to the course are indeed disabled (and remains disabled).
Call setFocusTraversalKeysEnabled (false) for the JSplitPane doesn't change anything...

If I catch Ctrl-TAB in a key listener registered on the JTextAreas and consume the event, the focus does not move. It's a solution, I guess, but I'm really annoyed by the fact that, for some reason, setFocusTraversalKeysEnabled (false) does not work.
Does anyone have any ideas why this could happen?
Thank you!

I'm not sure of the problem, but that people in two ways.
(That's for you to decide which of two ways you choose)

just by the strength of disable keys traversal focus...

How about using the [url http://docs.oracle.com/javase/7/docs/api/java/awt/KeyboardFocusManager.html#setDefaultFocusTraversalKeys(int, java.util.Set)] KeyboardFocusManager:

KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
focusManager.setDefaultFocusTraversalKeys(
    KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
    Collections.emptySet());
focusManager.setDefaultFocusTraversalKeys(
    KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
    Collections.emptySet());

Tags: Java

Similar Questions

  • Not able to have two tabs of the page even more!

    I love being able to have two tabs of the same open page so I can go from an email that I answer that I'm composing. The new update don't let me do! It keeps their merger in one tab! Help!

    Please click the button quite useful next to the answer that solved your problem of Firefox support, When you are connected, so this thread is marked as solved.

  • I can't move the body

    Hello I have looked at you affectionately. I learned a lot of you.can I have ask a question

    I use the host character preview 4

    As you can tell, I do all the steps... but the body does not move with the head. What I do is missing.

    I can't move the body, even with the movement of the mouse without body movement.


    I know a little English

    This Test video:
    https://www.youtube.com/watch?v=ZpgiG4F6aNE & feature = youtu.be


    Peppa Pig Files: . Download (Google Drive) Arend & .chproj -

    Try this: Adobe Creative Cloud

    The biggest problem, that's what I said about your comment on YouTube - the head and body + symbols in front of them, which means they were acting independently. Removing those and do some other fixes (fixed feet, stapling independent members) should help him hopefully.

  • ATTR_NO_EDIT_TEXT does not work with CTRL + Tab key combination.


    JoePass:

    I tested the code I posted.  Swallow the key event works for Ctrl-Tab (which means that the text of the control does not get changed when press it Ctrl + Tab).  The callback is made before the control is updated.  That's the whole point of reminders.  If you swallow the KeyPress (as in the code I posted), Ctrl-Tab will not overwrite the text.

    I have attached a sample project which shows how the events of the swallow will help you.  Run it and follow the instructions on the screen.

  • 'Ctrl + End' keyboard shortcut does not work as expected. I tried safe mode. does not move the tab to the end of such specified list, just scroll to the end of the page.

    According to http://support.mozilla.com/en-us/kb/keyboard+shortcuts,.
    'Ctrl + End' should move the active tab to the end of the list of tabs.

    But the shortcut does not work. Only, it scrolls to the end of the current page as if only "End" is pressed.

    I tried the mode without failure of firefox and closed all other open programs.

    What to do to debug this problem?
    or may there is a bug in firefox somehow?

    See the post of dao in this MozillaZine forum thread: http://forums.mozillazine.org/viewtopic.php?f=23 & t = 1304895

    Add code to userChrome.css below @namespace.

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    .tabbrowser-tab[selected="true"] {-moz-user-focus: normal !important;}
    
  • How to open the dialog Ctrl + Tab of a script? (I want to assign to a move of the mouse)

    How to open the dialog Ctrl + Tab of a script? (I want to assign to a move of the mouse)

    Do you mean Ctrl Tab (browser.ctrlTab.previews) Preview or browser: ShowAllTabs (allTabs.open ()); command or something else?

  • Move the update start and end tab does not work

    I can't use the shortcut to move the tab to start or finish, it moves the scroll in this tab at the bottom bar and the top of the page.

    https://support.Mozilla.org/en-us/KB/keyboard-shortcuts-perform-Firefox-tasks-quickly?redirectlocale=en-us & redirectslug = Keyboard + Shortcuts #w_editing

    Now, it worked. I had to press alt + b and shift + tab to use the shortcut ctrl + home or end.

    I don't know how I missed the last word "twice" in this sentence, but hey it works.


    "Some of these shortcuts require the tab currently selected to be"in focus". Currently, the only way to do it is to select an adjacent object and ' tab in ' the active tab, for example, by pressing Alt + D to select the address and then bar Shift + Tab twice. »

  • Keyboard shortcut "Move the focus to the next window in the active application" system ignored

    Hello. Other than, for example, InDesign, Photoshop (12.0.2 x 64, Mac OS X 10.6.6 MacPro 4,1) seems to ignore the keyboard shortcut 'Move focus to the next window in the application active' systemic (in my case, and I think that generally, cmd - <). The key combination is not used by the set of keyboard shortcuts in Photoshop; in fact, Photoshop refuses to accept it as a shortcut, favourable to its use as a shortcut to System. But then why is inoperative in Photoshop and how to make it work?

    Thank you very much

    Adobe uses Ctrl Tab.

    CTRL F6 is the command of apple, I think you're talking about.

  • Looking for keyboard shortcut to focus on the tab to the left or to the right of current

    Often, I want to be able to move my goal to left following the power or right of the current tab. I had rather not use my mouse. I searched a little jump lists, but can't find what does either makes precisely this.

    It's a bit like the Ctrl + Tab or Ctrl + Page Up, but those who do not seem to work properly for me either. They will work through a few tabs and then stop working.

    You can try the add-on customizable shortcuts.

  • Firefox crashes when I move the mouse on the history tab in Firefox 7.0.1. Why?

    Whenever I move the mouse over the menu history in firefox 7.0.1 program just hangs, I get a spinning wheel on Win 7, if I click on the program, it fades and becomes white. After about 20-30 seconds, everything goes back to normal, except that I can not even access the history. It does the same thing if I try again! It works if I press Ctrl + H, but that's all!

    What happens here?

    In addition, it seems not to submit incident reports.

    I followed the link in the post of cor - el and installed "addition to maintanance places."
    Is a check up and he cleaned the history and I can click on the history tab once again without any gel!
    Thank you

    Also want to let you know that the problem started when I used 'sync '.

  • Firefox opens a new window and moves the active tab to it. How can I stop this?

    Has got several tabs open. Firefox has suddenly closed the tab I'm trying (this seems to happen when I'm scrolling) and puts in a new window, move the focus to a previously inactive tab. What a swell feature! How can I get rid of him?

    Firefox 3.5/6 versions have a feature called tabs.

    You can detach a tab in the current window and open in a new window by dragging a tab in the browser window.

    You can drag the tab to the tab bar in the original window to cancel this detachment.

    bug489729 (Disable detach and tear off tab): https://addons.mozilla.org/firefox/addon/12276

  • I just want to move a layer of document in Photoshop to another document that has a visible tab in the upper area

    I just want to move a layer of document in Photoshop to another document that has a visible tab in the upper area

    Ensuring that the layer is active, Ctrl (Cmd on Mac) + A to select all. CTRL (Cmd) + C to copy. Switch to the other document. CTRL (Cmd) + V to paste.

  • move the focus to the next window, does not, PS CS3

    I searched the web for the last hour, try to understand it, here's my problem:

    When I type cmd +' I want to move the focus to the next window, so I can scroll through all the files that I opened.

    I'm on PS CS3 and OS 10.5.8

    It works in Indesign, Illustrator and Acrobat (also CS3), but not Photoshop for some reason any. During my research, I found you're supposed to be able to hit cmd + tab to scroll through windows, but that takes me to the next request, not the windows within the PS I want to keep this action put in place like that for my workflow.

    I tried the things:

    In system preferences, keyboards and mice, I have the F keys disabled because I have implemented actions on keys F. I tried enabeling the Fs, but it still doesn't work.

    I've been lookin under shortcuts (cmd + option + SHIFT + K) time after time and can not find the place where the next window is specified. If I could find maybe then I could change the shortcut, I know how to do this.

    I checked under the system preferences keyboard shortcuts and cmd +' is implemented through the windows. It works in every other application I can think but Photoshop.

    Help, please!

    miclled wrote:

    During my research, I found you are supposed to be able to hit cmd + tab to scroll through windows, but that takes me to the next, not asking the windows within the PS

    Try the command + tab, no command + tab

  • How can I stop the tabs at the top to move out of sight?

    The tabs move out of sight and to have access, I move the mouse to the top of the page. Is there a way to prevent that from happening?

    Hi, you may be in Mode full screen. Point to the top of the screen and then right click > exit full-screen Mode.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • How can I move the tab bar to the bottom, and how can I get my reload and stop buttons back?

    The new version of Firefox are repositioned my bar tabs at the top and I can't move it to the bottom. I tried everything: config, but browser.tabs.ontop was already set to false - very curious, because this should have resolved my problem in the first place.

    In the new version of Firefox, I can't get my reload and stop buttons back once again.

    Hi narab.

    You can use the classic theme restaurateur to bring all back them again. You can find more details here: https://support.mozilla.org/en-US/kb/how-to-make-new-firefox-look-like-old-firefox

Maybe you are looking for

  • Satellite A300D-14U and WXP - sound quality changes

    Hello world. I have a very strange problem with my new laptop. I have new notebook Satellite A300D-14U. I installed XP and all the drivers, but recently, I have noticed this problem. When media player or Winamp (or etc.) of plays and I get a message

  • Where can I get the drivers of Compaq 6910p?

    I know it's an old. I would like to get his driver I tried to find on the driver download, but I can't connect to this link http://h20180.www2.HP.com/apps/NAV?h_pagetype=s-002&h_lang=en&h_cc=us&h_client=S-A-R163-1&h_page=HPC... I would like to get th

  • HP officejet pro 8610: hp officejet pro 8610 printing problem

    I printed the Page of quality Diagnostic and see white lines through the colored target Test 3 blocks. I cleaned the print head using the menu configuration and reprinted Page diagnosis but still see the same white lines. I had to take the cartridges

  • 1506 wireless card WiFi

    I just got a Latitude E7440, it came equipped with the card WiFi Dell Wireless 1506.  I am running Windows 7 Professional 64 - bit.  There is a single driver for this card under Windows 7 64, that is the driver wireless Dell Wireless 1506 version 10.

  • The font size of BBM for the BBM Messages on iPhone

    My friend has an iPhone 4 with the latest OS updates and the latest version of BBM, but he complains about the size of the small police messages I send to him. Apparently there is no way for him to set the font size. Is someone knows if it is a short