Changeset 49aaa0e in mainline
- Timestamp:
- 2024-06-22T10:54:41Z (5 months ago)
- Branches:
- master
- Children:
- 4b20d5f, 6a044dd, a894219
- Parents:
- ec50d65e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
rec50d65e r49aaa0e 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * Copyright (c) 2011 Martin Decky 4 4 * All rights reserved. … … 366 366 { 367 367 cons_event_t event; 368 368 bool alt; 369 bool shift; 370 371 alt = (mods & KM_ALT) != 0 && (mods & (KM_CTRL | KM_SHIFT)) == 0; 372 shift = (mods & KM_SHIFT) != 0 && (mods & (KM_CTRL | KM_ALT)) == 0; 373 374 /* Switch console on Alt+Fn or Shift+Fn */ 369 375 if ((key >= KC_F1) && (key <= KC_F1 + CONSOLE_COUNT) && 370 ( (mods & KM_CTRL) == 0)) {376 (alt || shift)) { 371 377 cons_switch(key - KC_F1); 372 378 } else {
Note:
See TracChangeset
for help on using the changeset viewer.