Changeset 79949f3 in mainline


Ignore:
Timestamp:
2019-12-01T10:59:38Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24cf391a
Parents:
bd1f9a6d
Message:

Switch window focus on Alt-Tab or Shift-Tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    rbd1f9a6d r79949f3  
    102102errno_t ds_seat_post_kbd_event(ds_seat_t *seat, kbd_event_t *event)
    103103{
    104         ds_window_t *dwindow = seat->focus;
     104        ds_window_t *dwindow;
     105        bool alt_or_shift;
    105106
     107        alt_or_shift = event->mods & (KM_SHIFT | KM_ALT);
     108        if (event->type == KEY_PRESS && alt_or_shift && event->key == KC_TAB) {
     109                /* On Alt-Tab or Shift-Tab, switch focus to next window */
     110                ds_seat_evac_focus(seat, seat->focus);
     111                return EOK;
     112        }
     113
     114        dwindow = seat->focus;
    106115        if (dwindow == NULL)
    107116                return EOK;
Note: See TracChangeset for help on using the changeset viewer.