Fix #29655: keyboard shortcuts missing from text editor text menu, and removed
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Dec 2011 14:23:19 +0000 (14:23 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Dec 2011 14:23:19 +0000 (14:23 +0000)
confirmation popup for creating new text datablock.

release/scripts/startup/bl_ui/space_text.py
source/blender/editors/space_text/text_ops.c

index c3b2e30cb1250a0221ee4b454bf930668cd6b0f6..7249e9522fff6023c27341edffcba18e27123a9e 100644 (file)
@@ -174,9 +174,7 @@ class TEXT_MT_text(Menu):
         st = context.space_data
         text = st.text
 
-        layout.operator_context = 'EXEC_AREA'
         layout.operator("text.new")
-        layout.operator_context = 'INVOKE_AREA'
         layout.operator("text.open")
 
         if text:
index 16ee32d10a2b38f51cbb899a0866a85c8d490edc..566659e0391559b4119f28abd02e01a883c72162 100644 (file)
@@ -195,7 +195,6 @@ void TEXT_OT_new(wmOperatorType *ot)
        ot->description= "Create a new text data block";
        
        /* api callbacks */
-       ot->invoke= WM_operator_confirm;
        ot->exec= text_new_exec;
        ot->poll= text_new_poll;