This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients Todd.Rovito, ned.deily, roger.serwy, terry.reedy
Date 2013-07-14.07:28:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373786922.39.0.377206108521.issue18444@psf.upfronthosting.co.za>
In-reply-to
Content
The reason for the observed behavior is that the built-in "IDLE Classic OSX" keyset, which is the default for OS X framework installs, has a different keybinding for "beginning-of-line".  See Lib/idlelib/config-key.def

[IDLE Classic OSX]
...
beginning-of-line = <Control-Key-Left>

I'm not sure why the decision was made to use this binding originally.  Unfortunately, on current OS X systems (with US keyboards at least) Control-Left is preemptively defined as the default system Mission Contol keyboard shortcut to "Move left a space" (e.g a desktop) so, by default, Tk (and, hence, IDLE) never sees it.  This can be seen by going to System Preferences -> Keyboard -> Keyboard Shortcuts -> Mission Control.  You can temporarily disable or change "Move left a space" and verify that then Control-L does perform as expected.  You can also verify that changing the IDLE keyset to "IDLE Classic Windows" redefines "beginning-of-line" to Control-A and Home.

There are a number of other problematic (non-functional) key bindings in the "IDLE Classic OSX" keyset depending on a number of factors: which Tk variant is in use (Cocoa Tk, Carbon Tk, X11 Tk), System Preferences keyboard shortcuts, possibly which keyboard and which system input method are in use.  For more info on some of the hard-to-fathom Tk differences see: http://wiki.tcl.tk/28331

After spending some time trying to understand how this all works or doesn't across the various Tk's, I am coming to the conclusion that we need to define a new set of default key bindings for OS X, one that generally avoids as much as possible the use of Command key and Option key accelerators, as these tend to be especially problematic either in Tk or with system conflicts, and, instead, use Fn keys for non-trivial accelerators.
History
Date User Action Args
2013-07-14 07:28:42ned.deilysetrecipients: + ned.deily, terry.reedy, roger.serwy, Todd.Rovito
2013-07-14 07:28:42ned.deilysetmessageid: <1373786922.39.0.377206108521.issue18444@psf.upfronthosting.co.za>
2013-07-14 07:28:42ned.deilylinkissue18444 messages
2013-07-14 07:28:41ned.deilycreate