Changeset 5d380b6 in mainline for uspace/lib/ui/src/menu.c
- Timestamp:
- 2023-01-20T11:50:41Z (23 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1f0a14
- Parents:
- 6828a56
- git-author:
- Jiri Svoboda <jiri@…> (2023-01-20 19:50:21)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-01-20 11:50:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menu.c
r6828a56 r5d380b6 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 280 280 * @param menu Menu 281 281 * @param prect Parent rectangle around which the menu should be placed 282 */ 283 errno_t ui_menu_open(ui_menu_t *menu, gfx_rect_t *prect) 282 * @param idev_id Input device associated with the menu's seat 283 */ 284 errno_t ui_menu_open(ui_menu_t *menu, gfx_rect_t *prect, sysarg_t idev_id) 284 285 { 285 286 ui_popup_t *popup = NULL; … … 301 302 params.rect = geom.outer_rect; 302 303 params.place = *prect; 304 params.idev_id = idev_id; 303 305 304 306 rc = ui_popup_create(menu->mbar->ui, menu->mbar->window, ¶ms, … … 522 524 if (event->type == KEY_PRESS && (event->mods & KM_ALT) != 0 && 523 525 (event->mods & (KM_CTRL | KM_SHIFT)) == 0 && event->c != '\0') 524 ui_menu_bar_press_accel(menu->mbar, event->c );526 ui_menu_bar_press_accel(menu->mbar, event->c, event->kbd_id); 525 527 526 528 return ui_claimed; … … 616 618 break; 617 619 case KC_LEFT: 618 ui_menu_bar_left(menu->mbar );620 ui_menu_bar_left(menu->mbar, event->kbd_id); 619 621 break; 620 622 case KC_RIGHT: 621 ui_menu_bar_right(menu->mbar );623 ui_menu_bar_right(menu->mbar, event->kbd_id); 622 624 break; 623 625 case KC_UP:
Note:
See TracChangeset
for help on using the changeset viewer.