Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: change keyboard mapping in Stata 12 for Mac


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: change keyboard mapping in Stata 12 for Mac
Date   Mon, 6 Feb 2012 10:43:13 -0600

I would like to be able to get to the active window (or last used
window) of the text editor. Right now I just have to switch through
all the window until I get there. I can use the OS X key mapping to
make a "New Do-file," but that is as close as I can get. It's one of
the few nuisances I have with Stata for the Mac.

Fred

On Mon, Feb 6, 2012 at 9:36 AM, Phil Schumm <[email protected]> wrote:
> On Feb 5, 2012, at 4:56 PM, Donald Spady wrote:
>> Is it possible to remap the keyboard in Stata12 for Mac.  I use the do-file editor a fair bit and it is mapped a bit like Wordstar (for those of you old enough to remember Wordstar, it had amongst the best mapping for a keyboard around; NO dependence on any mouse, just your fingers).
>> I think the Mac editor probably takes the default from the key-mappings set up in my Apple preferences, but I don't know.
>>
>> THE PROBLEM IS that one key mapping does not work.  If I press Ctrl-D, the menu pops up to allow me to pick a do-file. I do not want this.  I want the cursor to move over to the right one character.  Is it possible to configure Stata to do that, and to pick some other key-combination to open the menu that lists my do-files?
>
>
> You may change the mapping of the menu command File -> Do via System Preferences.  Specifically:
>
>    1) System Preferences -> Keyboard -> Keyboard Shortcuts
>    2) Click on Application Shortcuts
>    3) Add a new shortcut for Stata:
>        a) Application -> Other -> Select StataSE.app (or equivalent)
>        b) Menu Title: "Do..."
>        c) Finally, specify the keyboard shortcut you want
>
> Now, according to the standard Cocoa text system, ctrl-D is bound to forward delete rather than move right.  If you want to change this, you simply add the following to ~/Library/KeyBindings/DefaultKeyBinding.dict (create the file if it doesn't already exist):
>
>    {
>        "^d" = "moveRight:";
>    }
>
> This will change the default for all applications that use the Cocoa text system.
>
>
> -- Phil
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index