Velocity/mode/insert.py
2022-03-19 15:57:38 +00:00

14 lines
255 B
Python

from core import cursors, modes
def execute(instance, key):
# Enter key
if key == 27:
# Switch to normal mode
modes.activate(instance, "normal")
def activate():
# Switch the cursor to a line
cursors.cursor_mode("line")