benanders / LuaIDE

An in-game IDE for ComputerCraft
MIT License
43 stars 9 forks source link

Problem pasting code from the system's clipboard #38

Closed RuiNtD closed 11 years ago

RuiNtD commented 11 years ago

If you just press Ctrl+V, it doesn't paste. In order to paste you have to hold Ctrl+V for a few seconds but that causes it to paste multiple times, depending on how long you hold Ctrl+V. For example: I see some code on the internet I want to use in my program. Let's say the code is: print("Hello world!") I copy it using Ctrl+V and go to LuaIDE. I press Ctrl+V and it does nothing. I hold Ctrl+V and eventually it types: print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")

1lann commented 11 years ago

Ctrl+V is hard coded into ComputerCraft and we can't do anything to fix it, since we cannot modify it.

On Thu, Jun 13, 2013 at 3:14 AM, bunny123 notifications@github.com wrote:

If you just press Ctrl+V, it doesn't paste. In order to paste you have to hold Ctrl+V for a few seconds but that causes it to paste multiple times, depending on how long you hold Ctrl+V. For example: I see some code on the internet I want to use in my program. Let's say the code is: print("Hello world!") I copy it using Ctrl+V and go to LuaIDE. I press Ctrl+V and it does nothing. I hold Ctrl+V and eventually it types: print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")print("Hello world!")

— Reply to this email directly or view it on GitHubhttps://github.com/GravityScore/LuaIDE/issues/38 .

benanders commented 11 years ago

As 1lann said, programs for ComputerCraft can't control pasting.