Subversion Repositories HelenOS

Rev

Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2479 Rev 3905
Line 71... Line 71...
71
{
71
{
72
    int *map = sc_primary_map;
72
    int *map = sc_primary_map;
73
    int ascii = sc_primary_map[key];
73
    int ascii = sc_primary_map[key];
74
    int shift, capslock;
74
    int shift, capslock;
75
    int letter = 0;
75
    int letter = 0;
-
 
76
    kbd_event_t ev;
76
 
77
 
77
    static int esc_count = 0;
78
    static int esc_count = 0;
78
 
79
 
79
    if (key == SC_ESC) {
80
    if (key == SC_ESC) {
80
        esc_count++;
81
        esc_count++;
Line 100... Line 101...
100
        shift = keyflags & PRESSED_SHIFT;
101
        shift = keyflags & PRESSED_SHIFT;
101
        if (letter && capslock)
102
        if (letter && capslock)
102
            shift = !shift;
103
            shift = !shift;
103
        if (shift)
104
        if (shift)
104
            map = sc_secondary_map;
105
            map = sc_secondary_map;
105
        if (map[key] != SPECIAL)
106
        if (map[key] != SPECIAL) {
-
 
107
            ev.key = map[key];
-
 
108
            ev.mods = 0;
-
 
109
            ev.c = map[key];
106
            keybuffer_push(keybuffer, map[key]);   
110
            keybuffer_push(keybuffer, &ev);
-
 
111
        }
107
        break;
112
        break;
108
    }
113
    }
109
}
114
}
110
 
115
 
111
/**
116
/**