Velocity/mode/insert.py

13 lines
241 B
Python

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