console: shift pad-enter now clears the line too.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Oct 2013 04:31:41 +0000 (04:31 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Oct 2013 04:31:41 +0000 (04:31 +0000)
source/blender/editors/space_console/space_console.c

index 88a04197847302bbd94d7bdc3d531165430240ca..5c8d1e84fd57aee0dc5a62204f30a9f95d0984e5 100644 (file)
@@ -317,6 +317,7 @@ static void console_keymap(struct wmKeyConfig *keyconf)
        RNA_enum_set(WM_keymap_add_item(keymap, "CONSOLE_OT_delete", BACKSPACEKEY, KM_PRESS, KM_CTRL, 0)->ptr, "type", DEL_PREV_WORD);
 
        WM_keymap_add_item(keymap, "CONSOLE_OT_clear_line", RETKEY, KM_PRESS, KM_SHIFT, 0);
+       WM_keymap_add_item(keymap, "CONSOLE_OT_clear_line", PADENTER, KM_PRESS, KM_SHIFT, 0);
 
 #ifdef WITH_PYTHON
        kmi = WM_keymap_add_item(keymap, "CONSOLE_OT_execute", RETKEY, KM_PRESS, 0, 0);