forked from bartvdbraak/blender
Fix #29655: keyboard shortcuts missing from text editor text menu, and removed
confirmation popup for creating new text datablock.
This commit is contained in:
parent
a0af3f7ffe
commit
a64d92eb13
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user