Keybinding for Ctrl + Enter (Ctrl + Carriage return)?
Author: fillipe-gsmCreated Jul 28, 2021Updated Feb 10, 2026
Is there a keybinding for when the user presses the combination Ctrl + Enter (Ctrl + Return)?
I looked at the documentation and the keys.py file and found the combination of Ctrl with basically everything, except Enter.
I know of "c-m", but this is only Enter. I tried to emulate hitting Ctrl and later Enter with something like
@kb.add("control", "c-m") # does not existbut it does not work as well.
Source: prompt-toolkit/python-prompt-toolkit