Fix #29655: keyboard shortcuts missing from text editor text menu, and removed

confirmation popup for creating new text datablock.
This commit is contained in:
Brecht Van Lommel 2011-12-19 14:23:19 +00:00
parent a0af3f7ffe
commit a64d92eb13
2 changed files with 0 additions and 3 deletions

@ -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:

@ -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;