Created
February 20, 2015 13:17
-
-
Save cocinerox/621f7d2745fcf770774e to your computer and use it in GitHub Desktop.
Solution for RStudio Server AltGr problem - an AutoHotkey script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Solution for RStudio Server AltGr problem - an AutoHotkey script | |
| ; | |
| ; RStudio Server Version 0.98.1091 has a bug for Windows browsers: | |
| ; on international keyboards AltGr + <any key> turns into a Ctrl + Alt + <key> shortcut, | |
| ; if that shortcut is defined. For example, AltGr + X calls the "Extract Function" method, | |
| ; while e.g. it is the keyboard combination for # on the Hungarian keyboard. | |
| ; | |
| ; The little AutoHotkey (http://www.autohotkey.com/) script below catches the AltGr combinations, | |
| ; and writes the appropriate characters (defined by ASCII codes) to the editor/console. | |
| ; | |
| ; Usage: | |
| ; 1. Adapt the script to your keyboard layout (if you're not Hungarian). | |
| ; 2. Run it with AutoHotkey (and it will stay in the background till closed). | |
| ; 3. Start RStudio Server. | |
| ; 4. Enjoy typing again. | |
| ; Optional: Compile it to an exe with AutoHotkey and share it with those who don't have AHK installed. | |
| <^>!x::SendInput {ASC 035} | |
| <^>!c::SendInput {ASC 038} | |
| <^>!v::SendInput {ASC 064} | |
| <^>!b::SendInput {ASC 123} | |
| <^>!n::SendInput {ASC 125} | |
| <^>!m::SendInput {ASC 060} | |
| <^>!f::SendInput {ASC 091} | |
| <^>!w::SendInput {ASC 124} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment