UI: Add initial context menus for Info and Console editors

Both keymaps are also updated
This commit is contained in:
William Reynish
2019-08-10 11:35:16 +02:00
parent 77516c25e4
commit 41f8f08e51
4 changed files with 47 additions and 1 deletions

View File

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