[texworks] Shortcuts and accelerators
esperanto at swing.be
Sun Apr 18 11:41:17 CEST 2010
Jérome Laurens a écrit :
> Le 17 avr. 2010 à 23:32, Jonathan Kew a écrit :
>> On 17 Apr 2010, at 21:28, Herbert Schulz wrote:
>>> On Apr 17, 2010, at 3:05 PM, Bruno Voisin wrote:
>>>> Usually the Save button is selected by default, so that pressing Return on the keyboard is a shortcut to clicking Save with the mouse. The Escape key is, as usual, a shortcut for clicking on Cancel. But there is not shortcut, to my knowledge, equivalent to clicking on Don't Save. Quite inconvenient to have to use the mouse just for that.
>> Yes, this has irritated me too! So now that you've brought it up, I figured out how I can add shortcuts to such alerts. In the source, I've just added Cmd-D for the Don't Save button; there may be a few other dialogs that could benefit from similar treatment, so feel free to make suggestions. (I also added a shortcut in the Revert dialog, though I don't suppose that's used nearly so often.)
>> The shortcuts can of course be modified by translators when they localize the interface.
> 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.
This has always been the case under Windows.
It is OK if your dialog box is not too complex, but sometimes it is also
easier to have shortcuts for options in "rich" dialog boxes (and menus).
For example for toggling some options in the Find or Replace dialog boxes.
More information about the texworks