From: Christian Dywan Date: Tue, 14 Dec 2010 21:43:56 +0000 (+0100) Subject: Handle oddities in Russian keyboard layouts X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb4a3c3e0f12e7e8eab8304b54c8be554461731;p=midori Handle oddities in Russian keyboard layouts --- diff --git a/midori/midori-view.c b/midori/midori-view.c index c579e732..7f4a9495 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1805,6 +1805,12 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view, 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 */ if (event->keyval == '.' || (view->find_links > -1