From fcb4a3c3e0f12e7e8eab8304b54c8be554461731 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 14 Dec 2010 22:43:56 +0100 Subject: [PATCH] Handle oddities in Russian keyboard layouts --- midori/midori-view.c | 6 ++++++ 1 file changed, 6 insertions(+) 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