Sublime Forum

I have to push crtl-c twice to copy

#1

This problem only occurs with Python syntax and only for ctrl-c. If I enter

sublime.log_commands(True)
sublime.log_input(True)

in the console, the output is:

key evt: control+c
key evt: control+c
command: copy

As you can see, the first ctrl-c did not correspond to the copy command.

How can I fix this problem?

I’m using Ubuntu 14.04 and Sublime Text 3 and I haven’t changed any key bindings.

0 Likes

#2

What packages have you installed?

0 Likes

#3

Thanks for the hint! The package that caused this problem for me was the package PythonTest. When it is removed ctrl-c works as it is supposed to.

0 Likes

#4

Same happened for me on .c and .py file that were built
I fixed it by redefining ctrl+c shortcut in user settings
Go to Preferences->Key Bindings. And append this line {…} on the right side (or if the right side is empty then copy everything with [ ]

[
{ “keys”: [“ctrl+c”], “command”: “copy” },
]

0 Likes

Pressing ctrl+c Twice to copy