Line commenting shortcut does not work.

Juuso Parkkinen's Avatar

Juuso Parkkinen

16 Mar, 2012 12:27 PM

The line commenting keyboard shortcut (Ctrl + / in Ubuntu, Cmd + / in Mac) does not work. First I encountered the problem with Mac OSX Lion and now it appeared also in my work computer (Ubuntu 10.10). Both run RStudio 0.95.261. And both have Finnish keyboards.

  1. Support Staff 2 Posted by Josh Paulson on 16 Mar, 2012 12:45 PM

    Josh Paulson's Avatar

    Juuso,

    We actually just released a fix for this, can you download the latest build (0.95.263) and let me know if this fixes it.

    http://www.rstudio.org/download/desktop

    Thanks,

    Josh

  2. 3 Posted by Juuso Parkkinen on 16 Mar, 2012 01:45 PM

    Juuso Parkkinen's Avatar

    Hi Josh,

    Thanks for the answer! Just installed version 0.95.263 on OS X Lion, but unfortunately the problem seems to persist :(

    For my work Ubuntu I can't update RStudio myself, need to ask admins the do that and it may take a while. But I'll let you know whether this works for Ubunut or not.

  3. Support Staff 4 Posted by Josh Paulson on 18 Mar, 2012 10:42 PM

    Josh Paulson's Avatar

    Juuso,

    This might be a result of the Finnish keyboard then as we've seen a few problems with this using other languages. We're looking into it though and could you do the following quick:

    1) Go to the following URL: http://www.quirksmode.org/js/keys.html
    2) Scroll to the bottom of the page and select the keydown checkbox
    3) press Cmd + / (which is the shortcut that is supposed to work for commenting)
    4) Tell us the output

    Josh

  4. 5 Posted by Juuso Parkkinen on 20 Mar, 2012 07:43 PM

    Juuso Parkkinen's Avatar

    Hi Josh,

    The output for pusing CMD + / (CMD + shift + 7) is this:

    keydown
    keyCode is 91
    charCode is 0

    keydown
    keyCode is 16
    charCode is 0

    keydown
    keyCode is 191
    charCode is 0

    br, Juuso

  5. Support Staff 6 Posted by Josh Paulson on 20 Mar, 2012 07:56 PM

    Josh Paulson's Avatar

    Juuso,

    Thanks and we'll be looking into this as well. I've updated our bug report with this information.

    Josh

  6. 7 Posted by Juuso Parkkinen on 21 Mar, 2012 02:13 PM

    Juuso Parkkinen's Avatar

    Hi Josh,

    Thanks for your help!

    I checked this in Ubuntu as well, the output (below) is otherwise the same,
    but the first key is of course different (CMD in Mac, Ctrl in PC).

    br, Juuso

    keydown
    keyCode is 17
    charCode is 0

    keydown
    keyCode is 16
    charCode is 0

    keydown
    keyCode is 191
    charCode is 0

  7. 8 Posted by Simone on 23 Mar, 2012 08:32 AM

    Simone's Avatar

    Hi,

    The same occurs on windows with the new version (0.95.263).

    Best,
    Simone

    keydown
    keyCode is 17
    charCode is 0

    keydown
    keyCode is 16
    charCode is 0

    keydown
    keyCode is 55
    charCode is 0

  8. Support Staff 9 Posted by Josh Paulson on 23 Mar, 2012 02:12 PM

    Josh Paulson's Avatar

    Simone,

    Thanks and we are still looking into this. This information will help! What type of keyboard layout do you have?

    Josh

  9. 10 Posted by Simone on 23 Mar, 2012 02:50 PM

    Simone's Avatar

    Hi Josh,

    What type of keyboard layout do you have? I use a keyboard with german layout. I could also test a spanish keyboard if you want. Just tell me!

    Best,
    Simone

  10. Support Staff 11 Posted by Josh Paulson on 23 Mar, 2012 03:38 PM

    Josh Paulson's Avatar

    Nope that is fine, but just wanted to be sure.

    Thanks,

    Josh

  11. 12 Posted by julien.textoris on 14 Apr, 2012 11:27 AM

    julien.textoris's Avatar

    Hi,

    I think i have a similar problem with french keyboard, were the "/" key is located above the ":" key, so if i use a keyboard with a numpad block, there is a "/" key alone and CTRL+/ works, but if i work on my notebook, with no numpad, the combination CTRL+SHIFT+: does not work. The combinaison of keys on my keyboard is :
    keydown
    keyCode is 17
    charCode is 0

    keydown
    keyCode is 16
    charCode is 0

    keydown
    keyCode is 59
    charCode is 0

    the rstudio version i use is 0.96.73

    Thanks for your help

    Julien

  12. Support Staff 13 Posted by Josh Paulson on 14 Apr, 2012 04:00 PM

    Josh Paulson's Avatar

    Julien,

    Thanks and I've added this to the bug report as well. We'll be taking a look.

    Josh

  13. 14 Posted by Jérôme on 15 Apr, 2012 10:01 AM

    Jérôme's Avatar

    Hello,

    I have exactly the same problem on Debian 6 (amd64) with the swiss french keyboard layout and rstudio 0.95.265. The "/" key is above the "7", so I have to press CTRL+SHIFT+7. The combinaison of keys on my keyboard is :

    keydown
    keyCode is 16
    charCode is 0

    keydown
    keyCode is 17
    charCode is 0

    keydown
    keyCode is 191
    charCode is 0

    Thanks a lot

    Best regards

  14. Support Staff 15 Posted by Josh Paulson on 15 Apr, 2012 09:06 PM

    Josh Paulson's Avatar

    Thanks for posting and I've added this to the bug report as well.

    Josh

  15. Support Staff 16 Posted by Josh Paulson on 25 May, 2012 10:28 PM

    Josh Paulson's Avatar

    Hello everyone,

    This finally have been fixed for the commenting and uncommenting shortcut. You can download the new version here:

    http://www.rstudio.org/download/desktop

    Due to some problems with Qt, the shortcut is now switched to Ctrl + Shift + C. Let us know if you continue to have problems.

    http://www.rstudio.org/docs/release_notes_v0.96.html#225

    Josh

  16. Josh Paulson closed this discussion on 25 May, 2012 10:28 PM.

  17. Juuso Parkkinen re-opened this discussion on 27 May, 2012 02:18 PM

  18. 17 Posted by Juuso Parkkinen on 27 May, 2012 02:18 PM

    Juuso Parkkinen's Avatar

    Great, thanks!

    Keep up the excellent work with RStudio!

    br, Juuso

  19. Josh Paulson closed this discussion on 27 May, 2012 04:45 PM.

Comments are currently closed for this discussion. You can start a new one.