diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-14 11:15:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-14 11:15:46 +0300 |
commit | 50e3cd0bb3ffd92b7811887e99e69e581813c8ed (patch) | |
tree | bae4ded29833eeb8c74788ff22ecd688a50d158f /release/scripts/startup/bl_operators/wm.py | |
parent | 43973410f3c0a6ab17be3a7899c64fee1787c61e (diff) |
Keymap: option to export all keymaps
Useful to store a snapshot of the current keymap state
so changes to the default keymap are ignored.
Also useful for testing keymap export works properly.
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 5b12f6196a4..238c34f6853 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1629,6 +1629,11 @@ class WM_OT_keyconfig_export(Operator): bl_idname = "wm.keyconfig_export" bl_label = "Export Key Configuration..." + all_keymaps = BoolProperty( + name="All Keymaps", + default=False, + description="Write all keymaps (not just user modified)", + ) filepath = StringProperty( subtype='FILE_PATH', default="keymap.py", @@ -1664,6 +1669,7 @@ class WM_OT_keyconfig_export(Operator): wm, wm.keyconfigs.active, self.filepath, + all_keymaps=self.all_keymaps, ) return {'FINISHED'} |