Shortcut with tabulation

Questions on using RText should go here.

Moderator: robert

Shortcut with tabulation

Postby ros » Wed Oct 02, 2013 8:35 am

Hi! I want set a shortcut "CTRL + TAB" but when hit TAB the focus goes to button OK of dialog window.
What can i do? I searched a file where the shortcut is saved but i didn't find it
Thanks!

Suse Linux Enterprise Server 9
ros
 

Re: Shortcut with tabulation

Postby robert » Wed Oct 02, 2013 1:30 pm

The tab key is traditionally used to cycle through focused components, so you just must be seeing that behavior. Can you copy and paste the code snippet you are adding to try to add the new shortcut? Here is some good documentation on key bindings in Swing.
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm

Re: Shortcut with tabulation

Postby ros » Wed Oct 02, 2013 3:48 pm

i go into
edit>options>shortcuts
I want
Next document: from "Ctrl + Page Down" to "Ctrl + Tab"
and
Previous document: from "Ctrl + Page Up" to "Ctrl + Shift + Tab"
ros
 

Re: Shortcut with tabulation

Postby robert » Wed Oct 02, 2013 8:00 pm

What dialog are you in? The "Next/Previous Document" actions are only available when in the main application window. You mentioned the "OK" button, so it sounds like you're in a dialog somewhere.
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm

Re: Shortcut with tabulation

Postby ros » Thu Oct 03, 2013 8:44 am

The problem is I can not set the shortcut
http://img542.imageshack.us/img542/9316/clhc.png
ros
 

Re: Shortcut with tabulation

Postby robert » Sat Oct 05, 2013 5:58 pm

Oh sorry, I completely misunderstood. I don't know if it's a good idea to allow the tab key in shortcuts, as it'll mess with keyboard accessibility. Further, I'm not sure that it eill even work, since I think Swing's focus subsystem will supercede an individual component's shortcuts eithout special code.

I'll give it a shot though and see what happens.
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm

Re: Shortcut with tabulation

Postby ros » Mon Oct 07, 2013 10:49 am

thanks
ros
 


Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests