[OS X TeX] Custom keyboard shortcuts in texshop
Herbert Schulz
herbs at wideopenwest.com
Mon Dec 6 15:38:03 CET 2010
On Dec 6, 2010, at 8:15 AM, Themis Matsoukas wrote:
> On Dec 6, 2010, at 8:45 AM, Herbert Schulz wrote:
>
>>
>> On Dec 6, 2010, at 6:31 AM, Themis Matsoukas wrote:
>>
>>> I assigned command-D as a keyboard shortcut for Edit/Check Spelling While Typing in Texshop. The shortcut shows in the Edit menu but when I first launch TS and open a document, the shortcut is dead, i.e., TS beeps when I type it and nothing happens. If I click on the Edit menu once and then return to the TS document (without clicking anything else on the Edit menu), the shortcut comes alive and works for the rest of the TS session. This behavior is reproducible upon quitting and relaunching TS. Changing the shortcut to a different keyboard combination makes no difference. Any ideas why the shortcut does not work right away? I am on TS Version 2.37 (2.37).
>>>
>>> Themis
>>
>> Howdy,
>>
>> I'm not sure why this is happening unless Cmd-D is set up for another command and there is some interference. Could you try something a bit more obscure, like Opt-Cmd-; or Ctl-Cmd-; (to match the Cmd-; to check spelling)? My tendency when adding keyboard shortcuts is to try to use things that won't interfere with OS usage, the simple commands, and make them a bit more obscure.
>>
>> Also, what version of the OS are you using?
>
> Herb,
>
> The problem is not specific to the shortcut combination (I tried cmd-D, Opt-cmd-D). The weird thing is that the shortcut starts to work only if I first click on texshop's "Edit" menu once, to bring up the pull-down menu. After this click, the shortcut works as expected --until I quid texshop, that is; relaunching TS starts the same cycle. I'm on OS 10.6.5.
>
> Themis
Howdy,
The only thing I can think of is that the OS treats certain basic operations, those that appear in most applications, as something that should behave the same, by default, in all applications and doesn't automatically change them without some ``extra encouragement.'' Maybe Dick Koch has a better answer for you.
I assume you used System Preferences->Keyboard->Keyboard Shortcuts->Application Shortcuts to add the shortcut. I've noticed that sometimes those may behave a bit off but haven't been able to lock down a reason.
If you have the Developer Tools you could add that shortcut to TeXShop's source and compile your own customized copy of TeXShop. I wouldn't install the Developer Tools just for that though since it's a very large download and takes up quite a bit of HD space.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the macostex-archives
mailing list