re-enable fix from r32330 but without the alt key check because this can be used...
[blender-staging.git] / source / blender / editors / space_console / console_ops.c
index a84a592279e53aec168ee5deb9be2ea147c2a106..c36cbc38640e9a0cbd5e3bca1d4ae36fe0660e71 100644 (file)
@@ -406,14 +406,9 @@ static int insert_invoke(bContext *C, wmOperator *op, wmEvent *event)
        // if(!RNA_property_is_set(op->ptr, "text")) { /* always set from keymap XXX */
        if(!RNA_string_length(op->ptr, "text")) {
                char str[2] = {event->ascii, '\0'};
-
-               /* XXX NOTE: Reverting this change from r32330, since it
-                * breaks input for cases where modifierkey is needed to
-                * create characters.
-                */
                /* if alt/ctrl/super are pressed pass through */
-               //if(event->alt || event->ctrl || event->oskey)
-               //      return OPERATOR_PASS_THROUGH;
+               if(event->ctrl || event->oskey)
+                       return OPERATOR_PASS_THROUGH;
 
                RNA_string_set(op->ptr, "text", str);
        }