UI: Add initial context menus for Info and Console editors
Both keymaps are also updated
This commit is contained in:
@@ -104,12 +104,22 @@ class INFO_MT_area(Menu):
|
||||
).use_hide_panels = True
|
||||
|
||||
|
||||
class INFO_MT_context_menu(Menu):
|
||||
bl_label = "Info Context Menu"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("info.report_copy", text="Copy")
|
||||
layout.operator("info.report_delete", text="Delete")
|
||||
|
||||
classes = (
|
||||
INFO_HT_header,
|
||||
INFO_MT_editor_menus,
|
||||
INFO_MT_area,
|
||||
INFO_MT_view,
|
||||
INFO_MT_info,
|
||||
INFO_MT_context_menu,
|
||||
)
|
||||
|
||||
if __name__ == "__main__": # only for live edit.
|
||||
|
Reference in New Issue
Block a user