Subversion Repositories HelenOS

Rev

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

Rev 4263 Rev 4327
Line 134... Line 134...
134
    printf("keycode: %u\n", key);
134
    printf("keycode: %u\n", key);
135
*/
135
*/
136
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
136
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
137
        key == KC_F1) {
137
        key == KC_F1) {
138
        active_layout = 0;
138
        active_layout = 0;
-
 
139
        layout[active_layout]->reset();
139
        return;
140
        return;
140
    }
141
    }
141
 
142
 
142
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
143
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
143
        key == KC_F2) {
144
        key == KC_F2) {
144
        active_layout = 1;
145
        active_layout = 1;
-
 
146
        layout[active_layout]->reset();
145
        return;
147
        return;
146
    }
148
    }
147
 
149
 
148
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
150
    if (type == KE_PRESS && (mods & KM_LCTRL) &&
149
        key == KC_F3) {
151
        key == KC_F3) {
150
        active_layout = 2;
152
        active_layout = 2;
-
 
153
        layout[active_layout]->reset();
151
        return;
154
        return;
152
    }
155
    }
153
 
156
 
154
    ev.type = type;
157
    ev.type = type;
155
    ev.key = key;
158
    ev.key = key;
Line 221... Line 224...
221
        return -1;
224
        return -1;
222
 
225
 
223
    /* Initialize controller driver. */
226
    /* Initialize controller driver. */
224
    if (kbd_ctl_init() != 0)
227
    if (kbd_ctl_init() != 0)
225
        return -1;
228
        return -1;
-
 
229
 
-
 
230
    /* Initialize (reset) layout. */
-
 
231
    layout[active_layout]->reset();
226
   
232
   
227
    /* Initialize key buffer */
233
    /* Initialize key buffer */
228
    keybuffer_init(&keybuffer);
234
    keybuffer_init(&keybuffer);
229
   
235
   
230
    async_set_client_connection(console_connection);
236
    async_set_client_connection(console_connection);