Keymap: support for reading/writing keymaps as data

Instead of running code to create a keymap, store them as data.
This allows for keymaps to share content as well as running
transformations at load time.
This commit is contained in:
2018-07-07 19:50:10 +02:00
parent 1f539cd7ef
commit f7bce99e4d
4 changed files with 259 additions and 3 deletions

View File

@@ -405,3 +405,10 @@ def keyconfig_test(kc):
if testEntry(kc, entry):
result = True
return result
# Note, we may eventually replace existing logic with this
# so key configs are always data.
from .keyconfig_utils_experimental import (
keyconfig_export_as_data,
keyconfig_import_from_data,
)