Changeset b987eb4 in mainline for uspace/lib/clui/tinput.c


Ignore:
Timestamp:
2022-03-11T16:42:03Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3b48f4
Parents:
c38ab6c
Message:

Translate keys to characters even if modifiers are pressed.

So that we can match Alt-key to menu accelerators. Of course
this means clients must check Ctrl and Alt state to determine
if they should insert characters, not just just kbd_event_t.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/clui/tinput.c

    rc38ab6c rb987eb4  
    857857                tinput_key_unmod(ti, kev);
    858858
    859         if (kev->c >= ' ') {
     859        if (((kev->mods & (KM_CTRL | KM_ALT)) == 0) && kev->c >= ' ') {
    860860                tinput_sel_delete(ti);
    861861                tinput_insert_char(ti, kev->c);
Note: See TracChangeset for help on using the changeset viewer.