Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Square brackets can no longer be typed in Monodevelop (Boot Camp + Windows)

Discussion in 'Editor & General Support' started by Nifflas, Nov 13, 2013.

  1. Nifflas

    Nifflas

    Joined:
    Jun 13, 2013
    Posts:
    118
    I'm on a Macbook Pro, and I use Boot Camp to run Windows on it. Swedish keyboard layout. Awkwardly, square brackets are typed by pressing Ctrl+Alt+8/9, but it worked nicely in Monodevelop until the new version that came with Unity 4.3. I'm no longer able to type square brackets, curly brackets, nor any other symbol that involves Ctrl+Alt.

    I've been out of luck googling for this issue, and I cannot find a setting that fixes this. Is anyone here aware of a way to fix this?

    Edit: I just found out that the easiest way to fix this is to set my keyboard to use the English layout. I'll just have to relearn a lot of keys.
     
    Last edited: Nov 13, 2013
  2. wronex

    wronex

    Joined:
    Nov 16, 2013
    Posts:
    1
    I can confirm this problem also exist for Windows 7. It is incredibly annoying. Is there some way to downgrade MonoDevelop?

     
  3. ViCoX

    ViCoX

    Joined:
    Nov 22, 2013
    Posts:
    37
    Same here with Finnish keyboard and windows 7! This must be the most annoying bug ever haha!
     
  4. AdmiralThrawn

    AdmiralThrawn

    Joined:
    Dec 1, 2013
    Posts:
    18
    Extremely annoying, since my alt gr key is broken and I usually use the ctrl+alt+<[/]/{/}> combination. Now I've got to copy and paste those symbols from an external editor everytime I type blocks, loops, etc.. (OS: Win7 64bit)
     
  5. j00hi

    j00hi

    Joined:
    Nov 18, 2012
    Posts:
    72
    Here is the solution: Download and install AutoHotkey: http://ahkscript.org/download/

    After installation, run it and AutoHotkey will ask you if it should open the default script file - say yes. (Can also be done later by right-clicking on the AutoHotkey tray symbol and klicking "Edit This Script")

    In the script, paste the following:

    #IfWinActive, ahk_class gdkWindowToplevel

    ^!7::
    Send {RAlt down}{7}{RAlt up}
    return

    ^!8::
    Send {RAlt down}{8}{RAlt up}
    return

    ^!9::
    Send {RAlt down}{9}{RAlt up}
    return

    ^!0::
    Send {RAlt down}{0}{RAlt up}
    return

    ^!ß::
    Send {RAlt down}{ß}{RAlt up}
    return


    Tell AutoHotkey to "Reload This Script" (right-klick on tray symbol) and that's it. This fixes it for all GDK windows, by the way.

    Please note: The last command ^!ß is specific to a german keyboard layout and means pressing Control + Alt + the character 'ß' (That's how the backslash is written on a keyboard with german layout). So if you are using any other keyboard layout, just change it accordingly.
     
    Last edited: May 10, 2014