This may be of little use to most people reading this, parking it here anyway :)
Scripted Keymap
this adds ctrl+enter keymap to the console keymaps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
wm = bpy.context.window_manager | |
if True: | |
km = wm.keyconfigs.default.keymaps['Console'] | |
new_shortcut = km.keymap_items.new('console.do_action', 'RET', 'PRESS', ctrl=True) | |
print('complete') |