Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot paste in console ? #36

Closed
kevincobain2000 opened this issue Aug 22, 2014 · 17 comments · Fixed by #53 or #285
Closed

cannot paste in console ? #36

kevincobain2000 opened this issue Aug 22, 2014 · 17 comments · Fixed by #53 or #285
Assignees
Milestone

Comments

@kevincobain2000
Copy link

kevincobain2000 commented Aug 22, 2014

Hi there. Just a quick question. As we are not able to (CMD+v) in the web console, is this feature intentionally disabled or do have plans in near future?

Thanks

@ryandao
Copy link

ryandao commented Aug 22, 2014

The key binding is not fully complete yet. We definitely have a plan to add more in the near future.

@ryandao ryandao added this to the v2.0.0 milestone Aug 22, 2014
@kevincobain2000
Copy link
Author

Lovely thanks

@dhh
Copy link
Member

dhh commented Aug 30, 2014

I've hit this too. Really would like to get copy'n'paste.

@Nowaker
Copy link

Nowaker commented Aug 30, 2014

Yep, really desired. Thanks!

@ryandao
Copy link

ryandao commented Aug 30, 2014

I'm working on it!

@chengguangnan
Copy link

Not sure why is this closed. I still can't paste.

  • web-console 2.0.0
  • OSX
  • Chrome and Safari

@parterburn
Copy link

@chengguangnan same here. The PR #107 addresses it.

@rodrigobdz
Copy link

@ryandao Could you reopen this issue? It's still not working.

Details

  • OS: OSX
  • web-console: Version 3.7.0
  • Browser: Google Chrome Version 70.0.3538.77 (Official Build) (64-bit)

@benjaminb10
Copy link

It's still not working.

@rodrigobdz
Copy link

ping @ryandao. Please reopen

@gsamokovarov
Copy link
Collaborator

I'll reopen it, but can you folks give me some more context about your environment? Browser, keyboard layout (US, European), OS, etc?

@gsamokovarov gsamokovarov reopened this Dec 19, 2018
@benjaminb10
Copy link

Mac OS X 10.14
AZERTY keyboard
Chrome 71

@swordfish444
Copy link

@gsamokovarov What's the latest on this issue? Was this fixed at one point? Did it regress?

Multi-line commands (including copy/paste) are not working.

Rails 5.1.6
Google Chrome (Version 71.0.3578.98 (Official Build) (64-bit))
2017 Macbook Pro (US keyboard)

@rempargo
Copy link

rempargo commented Mar 3, 2019

I need to click multiple times ⌘V, but it is very inconsistent, sometimes 5 times, sometimes 3, and sometimes only 1 time, but in rare cases also 9 times.

Rails 5.2.2
Google Chrome Version 72.0.3626.119 (Official Build) (64-bit)
MacBook Pro (15-inch, 2018)
Keyboard: English International

@estani
Copy link

estani commented Mar 3, 2020

Got fixed for 4.0 (Rails 6), it wasn't ported back to 3.7 (Rails 5) though, so if you are still on rails 5.0 you'll have to manually add the change from #285 to the already downloaded gem.
I've tested and it works. In my case (rbenv) the file was here to be found: ~/.rbenv/versions/2.5.7/lib/ruby/gems/2.5.0/gems/web-console-3.7.0/lib/web_console/templates/console.js.erb

@estani
Copy link

estani commented May 4, 2020

Just a heads up, this is in master, but still not released as of 4.0.1. In case someone is still wondering after 6 months. The patch should be something like:

--- a/web-console-4.0.1/lib/web_console/templates/console.js.erb     2020-05-04 11:26:58.000000000 +0200
+++ b/web-console-4.0.1/lib/web_console/templates/console.js.erb 2020-05-04 11:26:45.000000000 +0200
@@ -760,7 +760,7 @@
         _this.addToInput(_this.clipboard.value);
         _this.clipboard.value = "";
         _this.clipboard.blur();
+      }, 100);
-      }, 10);
     }
   }

@gsamokovarov
Copy link
Collaborator

You have a point, I have been holding on 4.0.2 for too long. It's released now with #285 applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet