[gnome-control-center] keyboard: Allow input of Hangul and Modifier+space shortcuts



commit 4888729aaea6934582ff3aee60dd3ee3d7a0e72a
Author: Changwoo Ryu <cwryu debian org>
Date:   Wed Apr 3 15:00:02 2013 +0900

    keyboard: Allow input of Hangul and Modifier+space shortcuts
    
    These keyboard switching key combinations had been rejected because
    using them as shortcuts might prevent users from inputting text. But
    now the input source switching keys are configured and processed in
    GNOME. So the shortcut settings should allow these key combinations.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693395

 panels/keyboard/keyboard-shortcuts.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 0dd7539..5b0c815 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1142,7 +1142,6 @@ static const guint forbidden_keyvals[] = {
   GDK_KEY_KP_Enter,
   GDK_KEY_Return,
 
-  GDK_KEY_space,
   GDK_KEY_Mode_switch
 };
 
@@ -1285,8 +1284,8 @@ accel_edited_callback (GtkCellRendererText   *cell,
            || (keyval >= GDK_KEY_Greek_ALPHAaccent && keyval <= GDK_KEY_Greek_omega)
            || (keyval >= GDK_KEY_hebrew_doublelowline && keyval <= GDK_KEY_hebrew_taf)
            || (keyval >= GDK_KEY_Thai_kokai && keyval <= GDK_KEY_Thai_lekkao)
-           || (keyval >= GDK_KEY_Hangul && keyval <= GDK_KEY_Hangul_Special)
            || (keyval >= GDK_KEY_Hangul_Kiyeog && keyval <= GDK_KEY_Hangul_J_YeorinHieuh)
+           || (keyval == GDK_KEY_space && mask == 0)
            || keyval_is_forbidden (keyval)) {
         GtkWidget *dialog;
         char *name;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]