[texworks] Shortcuts and accelerators

Bruno Voisin bvoisin at me.com
Sun Apr 18 10:39:32 CEST 2010


On 18 avr. 2010, at 08:24, Jérome Laurens wrote:

> You can use the <TAB> or arrow keys to highlight the button to press
> In that case, if you want "Don't Save", press <TAB>+<SPACE>
> 
> No need to deal with semantic shortcuts, no need to bother with translation.
> 
> But, I do not remember if it is default behavior or if it is tied to some preference (Universal Access?)
> The only thing I remember is that it is related to the "key view cycle" which is automatically built in not so recent recent systems.

You're right, it's available through the Keyboard system pref panel, the same where keyboard shortcuts are defined, and it is off by default:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-04-18 ? 09.56.15.png
Type: image/png
Size: 150874 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100418/ad7a5787/attachment-0004.png>
-------------- next part --------------


I'd never noticed this.

There are differences, though, in the way it operates in various applications, once activated (by choosing All controls in the above). With applications built using Apple's Cocoa API, the Tab key circles focus through buttons, making each button successively get a blue border, and then the button may be operated by pressing the Space key (but not Return, which remains associated with the Save button which remains fully blue). Here with TeXShop:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-04-18 ? 10.05.29.png
Type: image/png
Size: 39109 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100418/ad7a5787/attachment-0005.png>
-------------- next part --------------


With TeXworks, the Tab key makes each button fully blue and Return equivalent to it, then either the Return key or the Space key can be used to operate this button:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-04-18 ? 10.06.01.png
Type: image/png
Size: 36891 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100418/ad7a5787/attachment-0006.png>
-------------- next part --------------


I must say I prefer the way TeXworks works here.

I also don't feel comfortable with this Full Keyboard Access in OS X, given it affects all applications and all windows and dialogs, so in a web form in Safari for example it makes the Tab key circle not only through fields as this key usually does, but through fields and the button on the page to validate the entries and send the form away.

Potentially harmful I would say: imagine filing in a form (for credit card details, tax returns, etc.) using the Tab key to move across fields, pressing the Tab key once more without realizing it selects the Send button instead of circling back to the first field, then pressing the Space key thinking it will add new text in the first field. Then you've been had, the data in the form have been sent away to wherever they're meant to be sent, without your deciding willingly to do so!

I just checked with a university library search form, this is indeed the way Full Keyboard Access works (notice the Envoi button -- french version of Send -- getting a blue border after pressing the Tab key a few times, whereas usually the tab key moves only across search fields):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-04-18 ? 10.23.06.png
Type: image/png
Size: 73941 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100418/ad7a5787/attachment-0007.png>
-------------- next part --------------


Bruno Voisin


More information about the texworks mailing list