diff options
author | William Reynish <billrey@me.com> | 2019-08-10 12:35:16 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-08-10 12:35:16 +0300 |
commit | 41f8f08e5188ed3d859c8e896ce700cb15ddf67b (patch) | |
tree | 0c3c91b89f7b6204e9fae11925868706fc8cc186 /release/scripts/startup/bl_ui/space_info.py | |
parent | 77516c25e48d77bf2593b4dd13ef74e3737d0502 (diff) |
UI: Add initial context menus for Info and Console editors
Both keymaps are also updated
Diffstat (limited to 'release/scripts/startup/bl_ui/space_info.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_info.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py index 51b5a97b07e..eabf71365d5 100644 --- a/release/scripts/startup/bl_ui/space_info.py +++ b/release/scripts/startup/bl_ui/space_info.py @@ -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. |