Index: Lib/idlelib/config-keys.def =================================================================== --- Lib/idlelib/config-keys.def (revision 70642) +++ Lib/idlelib/config-keys.def (working copy) @@ -48,7 +48,7 @@ newline-and-indent= smart-indent= indent-region= -dedent-region= +dedent-region= comment-region= uncomment-region= tabify-region= @@ -99,7 +99,7 @@ newline-and-indent= smart-indent= indent-region= -dedent-region= +dedent-region= comment-region= uncomment-region= tabify-region= @@ -150,7 +150,7 @@ newline-and-indent= smart-indent= indent-region= -dedent-region= +dedent-region= comment-region= uncomment-region= tabify-region= Index: Lib/idlelib/configHandler.py =================================================================== --- Lib/idlelib/configHandler.py (revision 70674) +++ Lib/idlelib/configHandler.py (working copy) @@ -598,7 +598,7 @@ '<>': [' '], '<>': [''], '<>': [''], - '<>': [''], + '<>': [''], '<>': [''], '<>': [''], '<>': [''], Index: Lib/idlelib/EditorWindow.py =================================================================== --- Lib/idlelib/EditorWindow.py (revision 70642) +++ Lib/idlelib/EditorWindow.py (working copy) @@ -155,6 +155,16 @@ text.bind("<>", self.del_word_right) text.bind("<>", self.home_callback) + # A relatively common binding for dedent-region is Shift-Tab which + # usually is already controlled by the virtual event PrevWindow + # defined by Tk. We check this here to override the default behaviour. + prevwindow_info = text.event_info('<>') + for shortcut in text.event_info('<>'): + if shortcut in prevwindow_info: + # Instead of moving to the previous widget, we will want + # to dedent. + text.bind('<>', self.dedent_region_event) + if flist: flist.inversedict[self] = key if key:

AltStyle によって変換されたページ (->オリジナル) /