Sublime Forum

Enter/Return won't work

#1

When I click Return on my keyboard the cursor won’t return. Any suggestions? Thank you.

0 Likes

#2

without being able to press Enter/Return it’s a little tricky to enable debug logging :wink:

from the Tools menu, go to Developer -> New Plugin…

replace the new buffer that is created with the following:

import sublime
import sublime_plugin


def plugin_loaded():
    sublime.log_input(True)
    sublime.log_commands(True)

save it, in the folder ST recommends, as log.py.

Then, press Enter and/or Return.
open the ST console (View menu -> Show Console), and (scroll to the bottom and) you should see something like:

key evt: enter
command: insert {"characters": "\n"}

what do you see?

you could try https://www.sublimetext.com/docs/3/revert.html to clear your keybindings in case that will help.

1 Like

Newbie help getting started