Ticket #21: 0001-make-hotkeys-which-involve-alt-gr-work-in-the-linux-.patch

File 0001-make-hotkeys-which-involve-alt-gr-work-in-the-linux-.patch, 920 bytes (added by ossi, 23 months ago)
  • lib/tty/key.c

    From c345b72923b8027556c1208e647a8771105ed794 Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <ossi@kde.org>
    Date: Fri, 3 Apr 2009 00:10:10 +0200
    Subject: [PATCH] make hotkeys which involve alt-gr work in the linux console
    
    this is pretty much a hack. the real solution is waaay more complex
    ---
     lib/tty/key.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/lib/tty/key.c b/lib/tty/key.c
    index 4abfc71d7..39dca1167 100644
    a b get_modifier (void) 
    984984        /* Translate Linux modifiers into mc modifiers */ 
    985985        if ((modifiers & SHIFT_PRESSED) != 0) 
    986986            result |= KEY_M_SHIFT; 
    987         if ((modifiers & (ALTL_PRESSED | ALTR_PRESSED)) != 0) 
     987        if ((modifiers & ALTL_PRESSED) != 0) 
    988988            result |= KEY_M_ALT; 
    989989        if ((modifiers & CONTROL_PRESSED) != 0) 
    990990            result |= KEY_M_CTRL;