mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
One more russian keyboard fix...
git-svn-id: svn://ultimatepp.org/upp/trunk@9617 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d3102f63c3
commit
06d986c4fe
1 changed files with 4 additions and 3 deletions
|
|
@ -425,7 +425,7 @@ void Ctrl::Proc()
|
|||
{ GDKEY(KP_Insert), K_INSERT },
|
||||
{ GDKEY(KP_Delete), K_DELETE },
|
||||
};
|
||||
|
||||
|
||||
if(kv > 256) { // Non-latin keyboard layout should still produce accelerators like Ctrl+C etc...
|
||||
static VectorMap<int, int> hwkv; // convert hw keycode to Latin GTK keyval
|
||||
ONCELOCK {
|
||||
|
|
@ -433,8 +433,9 @@ void Ctrl::Proc()
|
|||
GdkKeymapKey *keys;
|
||||
gint n_keys;
|
||||
if(gdk_keymap_get_entries_for_keyval(NULL, i, &keys, &n_keys)) {
|
||||
if(n_keys)
|
||||
hwkv.Add(keys[0].keycode, i);
|
||||
for(int j = 0; j < n_keys; j++)
|
||||
if(keys[j].group == 0)
|
||||
hwkv.Add(keys[j].keycode, i);
|
||||
g_free(keys);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue