Message157054
| Author |
roger.serwy |
| Recipients |
ankit615, asvetlov, ned.deily, roger.serwy |
| Date |
2012年03月29日.14:59:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333033144.98.0.250634827481.issue14409@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
IDLE contains keyboard configuration in config-keys.def (Mac, Windows, UNIX) and in configHandler.py.
GetCoreKeys contains the "keyBindings" dict which has fall-back values in case the given key set is missing values (a warning is printed). Ankit's screenshot contains these warning messages.
GetKeyBinding is a helper function that splits a string containing multiple key bindings. Read the commented header in config-keys.def to see why this is so.
The fall-back values in keyBindings do not pass through the GetKeyBinding function, and thus "<Key-Return> <Key-KP_enter>" does not get split.
Everyone else uses IDLE's prepackaged key bindings as a starting point for creating custom key maps. The key maps from config-keys.def already passed through GetKeyBinding. This is why <Return> works for everyone else. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月29日 14:59:05 | roger.serwy | set | recipients:
+ roger.serwy, ned.deily, asvetlov, ankit615 |
| 2012年03月29日 14:59:04 | roger.serwy | set | messageid: <1333033144.98.0.250634827481.issue14409@psf.upfronthosting.co.za> |
| 2012年03月29日 14:59:04 | roger.serwy | link | issue14409 messages |
| 2012年03月29日 14:59:04 | roger.serwy | create |
|