I'm trying to add a new keymap for the toggle_skip but it doesn't work.
I need to put "CTRL + N".
I added in renpy/display/behavior.py :
Code: Select all
if part[0] == "ctrl":
part.pop(0)
rv += " and (ev.mod & %d)" % pygame.KMOD_CTRL
else:
rv += " and not (ev.mod & %d)" % pygame.KMOD_CTRL
Code: Select all
key "ctrl_K_b" action FileLoad(recent_save_name, confirm=True, page=recent_save_page)But if i try to do this :
Code: Select all
$ config.keymap['toggle_skip'].append('ctrl_K_n')So, how can i put the "toggle_skip" in an action of a key like key "ctrl_K_n" action toggle_skip() ?
Can you help me please ? Thank you in advance !