From 9d809119a6eeea0f7746e94563c2e02595633e79 Mon Sep 17 00:00:00 2001 From: ozo Patriarch Date: Wed, 9 Sep 2009 16:39:40 +0200 Subject: [PATCH] Added some cyrillic shortcuts to GTK. --- AUTHORS | 2 +- mpv_gtk.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index f6b2031..ebcdd20 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,7 +5,7 @@ Angel Ortega - Main coding Jeremy Cowgar - Sessions, file sections Eric Welser - Rectangular blocks Sebastian Vöcking - GTK improvements -ozo Patriarch - Updated Russian translation +ozo Patriarch - Updated Russian translation, Russian shortcuts 3.x version =========== diff --git a/mpv_gtk.c b/mpv_gtk.c index 6d2de05..0d63ddc 100644 --- a/mpv_gtk.c +++ b/mpv_gtk.c @@ -751,6 +751,14 @@ static gint key_press_event(GtkWidget * widget, GdkEventKey * event, gpointer da case GDK_F12: ptr = L"ctrl-f12"; break; case GDK_KP_Enter: case GDK_Return: ptr = L"ctrl-enter"; break; + case GDK_Cyrillic_shorti: ptr = L"ctrl-q"; break; + case GDK_Cyrillic_yeru: ptr = L"ctrl-s"; break; + case GDK_Cyrillic_ya: ptr = L"ctrl-z"; break; + case GDK_Cyrillic_tse: ptr = L"ctrl-w"; break; + case GDK_Cyrillic_shcha: ptr = L"ctrl-o"; break; + case GDK_Cyrillic_che: ptr = L"ctrl-x"; break; + case GDK_Cyrillic_em: ptr = L"ctrl-v"; break; + case GDK_Cyrillic_es: ptr = L"ctrl-c"; break; } if (ptr == NULL) { -- 2.11.4.GIT