Print out current shortcuts

Something like this but actually for all keys and contexts with their relevant properties



import bpy
local_window_manager = bpy.context.window_manager
for local_key_map in local_window_manager.keyconfigs.user.keymaps:
    print(local_key_map.name)
    for local_key_map_item in local_key_map.keymap_items:
        hotkey = []
        if local_key_map_item.ctrl: hotkey.append("Ctrl")
        if local_key_map_item.shift: hotkey.append("Shift")
        if local_key_map_item.alt: hotkey.append("Alt")
        hotkey.append("%s (%s)" % (local_key_map_item.type, local_key_map_item.value))
        print("%s    %s"  % (local_key_map.name, " + ".join(hotkey)))