Questions tagged [keyboard-layout]
253 questions
101
votes
6 answers
An Ideal Keyboard Layout for Programming
I often hear complaints that programming languages that make heavy use of symbols for brevity, most notably C and C++ (I'm not going to touch APL), are difficult to type because they require frequent use of the shift key. A year or two ago, I got…

Jon Purdy
- 53,300
- 8
- 96
- 166
60
votes
4 answers
Are alternative keyboard layouts like Dvorak, Colemak, etc. better than QWERTY?
There are many alternative keyboards to the standard US keyboard layout (called QWERTY).
Some examples include Dvorak, (and variants like Programmer Dvorak), Colemak, AZERTY, Workman layout, etc.
Do any of these confer a benefit to typing speed,…

Mark Anderson
- 2,399
- 3
- 15
- 21
47
votes
9 answers
Unable to type braces and square braces in emacs
I'm running Mac OS X and GNU Emacs 22.3.1. I use a swedish keyboard. I am unable to type braces { }, [ ] in emacs. When trying to type braces I get parenthesis. Since I'm quite new to Mac and emacs I need a little help on configuring emacs to get…

Niclas Åstrand
- 563
- 1
- 6
- 8
22
votes
6 answers
detect keyboard layout with javascript
Is there any way to detect the current keyboard layout using JavaScript? I found this,
but it only detects if the visitor is on the english layout. I need to know the exact layout as a string, e.g.de-ch, fr or en.

Parzifal
- 1,046
- 3
- 12
- 25
18
votes
6 answers
Frequency of symbols in programming languages
I'm looking for some kind of reference which shows the frequency of symbols of popular programming languages. I'm trying to design an optimal keyboard layout for programming.
If there is no such reference, I wouldn't mind creating a simple utility…

Senseful
- 86,719
- 67
- 308
- 465
16
votes
4 answers
Change Keyboard Layout for Other Process
I'm writing a program in C# that runs in the background and allows users to use a hotkey to switch keyboard layouts in the active window. (Windows only supports CTRL+SHIFT and ALT+SHIFT)
I'm using RegisterHotKey to catch the hotkey, and it's…

SLaks
- 868,454
- 176
- 1,908
- 1,964
15
votes
4 answers
How to automatically change keyboard layout on switch to vim normal-mode?
Sometimes I use vim to write non-US text, and when I wanna use any command in normal mode, I need to change layout to US. It's possible to do that automatically?
PS. I can do mapping like this, but in this case command looks like :ц instead :w - not…

Aleksey Bakin
- 1,506
- 13
- 27
14
votes
3 answers
Done key in iPhone app that closes keyboard (with UITextView)
I'm working on an iPhone app and in the iPhone app the user is typing in an UITextView.
I was wondering how I could add the done key on the keyboard instead of having the normal return key and when you click on that key the keyboard closes.
Thanks!

Tapy
- 1,044
- 6
- 17
- 30
14
votes
9 answers
Is there a programming language that uses characters other than those in the (non-extended) ascii table?
I cant see who would make such a decision but is there any such language?
The reason I ask this (or some trivia, if you like) is that I just finished making the eighth iteration of my "developer" version of dvorak (big emphasis on special…

Mizipzor
- 51,151
- 22
- 97
- 138
14
votes
3 answers
iOS Simulator typing in Dvorak keyboard appears as QWERTY keys
I just installed Xcode and iOS Simulator.
My Mac's Dvorak keyboard layout is not working when I type in the iOS Simulator.
When I type in Dvorak, it shows up in the iOS Simulator as if I was typing with the QWERTY keyboard layout.
I tried switching…

Hlung
- 13,850
- 6
- 71
- 90
14
votes
3 answers
Modified Colemak for Programming
Does there exist a modified Colemak keyboard layout designed specifically for programming?
I went cold-turkey on the Colemak keyboard layout a few days ago and I really like it for normal typing, but I have some issues for frequent programming…

Petrus Theron
- 27,855
- 36
- 153
- 287
12
votes
2 answers
Find out when keyboard layout is changed
I am writing an onscreen keyboard and would like to redraw my layout as soon as keyboard layout is changed.
Currently I call:
GetKeyboardLayout(GetWindowThreadProcessId(GetForegroundWindow(), NULL));
on every key press to find out if the layout has…

Nejchy
- 666
- 11
- 24
12
votes
5 answers
Extracting keyboard layouts from windows
OK, this is a slightly weird question.
We have a touch-screen application (i.e., no keyboard). When users need to enter text, the application shows virtual keyboard - hand-built in WinForms.
Making these things by hand for each new language is…

Benjol
- 63,995
- 54
- 186
- 268
12
votes
4 answers
IdeaVim and russian layout
Is there any way to make IdeaVim understand russian layout in modes other than Input? In my .vimrc I have
set keymap=russian-jcukenwin
so I can switch languages in VIM by pressing Ctrl+^ and relatively happy with that. But it seems that IdeaVim…

Alex Chekunkov
- 667
- 7
- 12
11
votes
0 answers
How to change keyboard shortcut to switch input language on Chrome OS?
On Chrome OS, ctrl + space is used to change current keyboard layout.
This is very inconvenient when using a computer for programming. Usually, this keyboard shortcut is triggers the help popup. For example IntelliSense features in VS Code or…

Petr Tripolsky
- 1,419
- 15
- 23