Handle oddities in Russian keyboard layouts
This commit is contained in:
parent
b34714cbe4
commit
fcb4a3c3e0
1 changed files with 6 additions and 0 deletions
|
@ -1805,6 +1805,12 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view,
|
||||||
|
|
||||||
event->state = event->state & MIDORI_KEYS_MODIFIER_MASK;
|
event->state = event->state & MIDORI_KEYS_MODIFIER_MASK;
|
||||||
|
|
||||||
|
/* Handle oddities in Russian keyboard layouts */
|
||||||
|
if (event->hardware_keycode == ';')
|
||||||
|
event->keyval = ',';
|
||||||
|
else if (event->hardware_keycode == '<')
|
||||||
|
event->keyval = '.';
|
||||||
|
|
||||||
/* Find links by number: . to show links, type number, Return to go */
|
/* Find links by number: . to show links, type number, Return to go */
|
||||||
if (event->keyval == '.'
|
if (event->keyval == '.'
|
||||||
|| (view->find_links > -1
|
|| (view->find_links > -1
|
||||||
|
|
Loading…
Reference in a new issue