WIP console text selection, modal selection operator and selection drawing.
[blender-staging.git] / source / blender / editors / space_console / space_console.c
index 7d23421c5cf5d07f41fbb38e90537b0feda120ff..f4058f4eefb79b3b96d82d3ef2f16cbf496d8e82 100644 (file)
@@ -208,7 +208,7 @@ void console_operatortypes(void)
        WM_operatortype_append(CONSOLE_OT_copy);
        WM_operatortype_append(CONSOLE_OT_paste);
        WM_operatortype_append(CONSOLE_OT_zoom);
-
+       WM_operatortype_append(CONSOLE_OT_select_set);
 
        /* console_report.c */
        WM_operatortype_append(CONSOLE_OT_select_pick);
@@ -287,6 +287,7 @@ void console_keymap(struct wmKeyConfig *keyconf)
        
        WM_keymap_add_item(keymap, "CONSOLE_OT_copy", CKEY, KM_PRESS, KM_CTRL, 0);
        WM_keymap_add_item(keymap, "CONSOLE_OT_paste", VKEY, KM_PRESS, KM_CTRL, 0);
+       WM_keymap_add_item(keymap, "CONSOLE_OT_select_set", LEFTMOUSE, KM_PRESS, 0, 0);
 
        RNA_string_set(WM_keymap_add_item(keymap, "CONSOLE_OT_insert", TABKEY, KM_PRESS, 0, 0)->ptr, "text", "    "); /* fake tabs */
        WM_keymap_add_item(keymap, "CONSOLE_OT_insert", KM_TEXTINPUT, KM_ANY, KM_ANY, 0); // last!