Questions tagged [keyboard-layout]
253 questions
11
votes
1 answer
get current active keyboard layout(language) in linux
In my C/C++ program I want to know which language is user going to type. I mean the language whose ID is displayed in the corner of the task bar. Like EN or RU or ZH or FR or IT.
I know how to get the list of possible layout:
$ setxkbmap -query |…

exebook
- 32,014
- 33
- 141
- 226
10
votes
1 answer
How to use LoadKeyboardLayout in a background thread?
I'm using the LoadKeyboardLayout function to load and activate the keyboard layout this way:
procedure TfrmMain.eSearchEnter(Sender: TObject);
begin
LoadKeyboardLayout('00000429', KLF_ACTIVATE);
end;
It works perfectly, but it freezes the active…

Farshad H.
- 303
- 4
- 16
10
votes
0 answers
Switching between keyboard layouts on Arch Linux breaks other key bindings
I'm an Arch Newbie and have this problem:
I want to have two keyboard layouts(en and bg) and to switch between them with alt+shift command. So i did everything as it is written here and everything works. I have two layouts and I switch between them…

hrvladev
- 133
- 1
- 7
9
votes
4 answers
How to map a X11 KeySym to a Unicode character?
This is an exact duplicate of this question; however the code linked in the accepted answer is nearly 11 years old, and this comment in the code leads to my duplicate question:
The keysym -> UTF-8 conversion will hopefully one day be provided by
…

x-x
- 7,287
- 9
- 51
- 78
9
votes
4 answers
how to type certain commands in vim, like CTRL-] ^Wc etc.. on a German Keyboard
I'm sitting here feeling silly - the vim help tells me to hit CTRL] (to follow links in the help) and I can't get it!? Same problem with ^Wc (close a split window)
I have a German keyboard and especially the CTRL] doesn't seem to work for me.
How do…

Johannes
- 3,002
- 4
- 33
- 36
9
votes
2 answers
How to get LOCALIZED character on keypress?
I need to get localized character on keypress event. For example: on a Czech keyboard I need to get ř not 5 character (key code 53) (see Czech keyboard layout). Is there any other way to get character and to not use text input and reading value? By…

Honza Kuchař
- 629
- 2
- 9
- 16
8
votes
1 answer
Android keyboard layout language
Writing a dictionary application for android.
Want to set translation direction in accord with current input language (to be more precise, language of letters displayed on soft keyboard). For example, we got language pair English-French. What I…

Alex Shtuk
- 325
- 3
- 9
8
votes
1 answer
Create a custom setxkbmap option
Oddly, this seems like it should be something that's been done before: I want to swap the numbers and symbols on the 1–0 keys across the top of my keyboard so that:
When I hit the 6 key, an * is typed instead of a 6.
When I hit Shift+6 the number 6…

Bobby
- 1,439
- 2
- 16
- 30
8
votes
1 answer
MSKLC under Windows 10: Create custom keyboard layout which supports IME (input method) for Chinese and combined input in Spanish
This question is originally posted by me in Microsoft Community at:
https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/msklc-under-windows-10-create-custom-keyboard/8c5a7137-d575-4247-8ab3-b4dd1e5fb437?tm=1495318604424
In…

WesternGun
- 11,303
- 6
- 88
- 157
8
votes
2 answers
Can I change a user's keyboard input?
I found this keyboard hook code, which I'm trying to slightly modify for my purposes: http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx
As an overview, I want to have the user press a key, say 'E', and have the keyboard return a different…

ck_
- 3,719
- 10
- 49
- 76
7
votes
3 answers
Preserving keyboard layout in swing app?
I have a Java Swing application wich spawns child dialogs with text controls. And the problem is that when you change keyboard layout in child dialog, it changes back right after the dialog is closed.
What I need is the keboard layout to stay after…

yggdraa
- 2,002
- 20
- 23
7
votes
2 answers
Add International English keyboard in windows 10 through the powershell
It is a known issue that in windows 10 when you decide to add multiple languages you end up with several keyboards that you can not get rid off. A well known solution that I have used in order to have only Greek and English keyboards is to create a…

Alexius DIAKOGIANNIS
- 2,465
- 2
- 21
- 32
7
votes
1 answer
Keyboard remapping with more modifiers
I'm looking for a way to add one more "layout" to my keyboard. I'm already using a layout that uses altgr for local alphabet letters. What I'd like to add is a mirrored righthand-side keyboard that's activated with the caps-lock (one described in…

viraptor
- 33,322
- 10
- 107
- 191
6
votes
4 answers
change the keyboard layout after a button click
I'm developping an android app , and i have an EditText and a two RadioButtons (A and B ),
what i'm trying to do is :
When RadioButton A is checked , i want to change the keyboard layout to display it with the Done button ,
When the RadioButton B…

Houcine
- 24,001
- 13
- 56
- 83
6
votes
3 answers
iPhone keyboard layout for negative numbers?
My users need to enter latitude and longitude, and of course I need to verify that the values entered are legitimate lat/long value. I'd like to have a keyboard layout that does some of this for me (eliminating alphabetic characters, punctuation,…

lambdabunny
- 153
- 2
- 8