- Scrollbars for the console (use View2D functions)
[blender-staging.git] / source / blender / editors / space_console / console_ops.c
index d2cd4df6426900d025ca22740f7452f0fb3f0b46..c82463eb7682c794e1be130ba547127e63a7d854 100644 (file)
@@ -287,8 +287,10 @@ static int insert_exec(const bContext *C, wmOperator *op)
 
 static int insert_invoke(const bContext *C, wmOperator *op, wmEvent *event)
 {
-       char str[2] = {event->ascii, '\0'};
-       RNA_string_set(op->ptr, "text", str);
+       if(!RNA_property_is_set(op->ptr, "text")) {
+               char str[2] = {event->ascii, '\0'};
+               RNA_string_set(op->ptr, "text", str);
+       }
        return insert_exec(C, op);
 }