Changeset b987eb4 in mainline
- Timestamp:
- 2022-03-11T16:42:03Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b3b48f4
- Parents:
- c38ab6c
- Location:
- uspace
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/scores.c
rc38ab6c rb987eb4 149 149 continue; 150 150 151 if ((ev.ev.key.mods & (KM_CTRL | KM_ALT)) != 0) 152 continue; 153 151 154 kev = &ev.ev.key; 152 155 -
uspace/lib/clui/tinput.c
rc38ab6c rb987eb4 857 857 tinput_key_unmod(ti, kev); 858 858 859 if ( kev->c >= ' ') {859 if (((kev->mods & (KM_CTRL | KM_ALT)) == 0) && kev->c >= ' ') { 860 860 tinput_sel_delete(ti); 861 861 tinput_insert_char(ti, kev->c); -
uspace/lib/ui/src/entry.c
rc38ab6c rb987eb4 664 664 break; 665 665 } 666 667 666 return ui_claimed; 668 667 } … … 743 742 if (!entry->active) 744 743 return ui_unclaimed; 745 746 if (event->type == KEY_PRESS && event->c >= ' ') {747 off = 0;748 rc = chr_encode(event->c, buf, &off, sizeof(buf));749 if (rc == EOK) {750 buf[off] = '\0';751 (void) ui_entry_insert_str(entry, buf);752 }753 }754 744 755 745 /* … … 768 758 if (event->type == KEY_RELEASE && event->key == KC_RSHIFT) 769 759 entry->rshift_held = false; 760 761 if (event->type == KEY_PRESS && 762 (event->mods & (KM_CTRL | KM_ALT)) == 0 && event->c >= ' ') { 763 off = 0; 764 rc = chr_encode(event->c, buf, &off, sizeof(buf)); 765 if (rc == EOK) { 766 buf[off] = '\0'; 767 (void) ui_entry_insert_str(entry, buf); 768 } 769 } 770 770 771 771 if (event->type == KEY_PRESS && -
uspace/srv/hid/input/layout/ar.c
rc38ab6c rb987eb4 216 216 char32_t c; 217 217 218 /* Produce no characters when Ctrl or Alt is pressed. */219 if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)220 return 0;221 222 218 c = translate(ev->key, map_neutral, sizeof(map_neutral) / sizeof(char32_t)); 223 219 if (c != 0) -
uspace/srv/hid/input/layout/cz.c
rc38ab6c rb987eb4 322 322 char32_t c; 323 323 324 /* Produce no characters when Ctrl or Alt is pressed. */325 if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)326 return 0;327 328 324 if (ev->key == KC_EQUALS) { 329 325 if ((ev->mods & KM_SHIFT) != 0) -
uspace/srv/hid/input/layout/fr_azerty.c
rc38ab6c rb987eb4 223 223 static char32_t fr_azerty_parse_ev (layout_t *s, kbd_event_t *e) 224 224 { 225 if ((e->mods & (KM_CTRL | KM_ALT)))226 return 0; // Produce no characters when Ctrl or Alt is pressed227 228 225 char32_t c = translate (e->key, map_neutral, sizeof (map_neutral) / sizeof (char32_t)); 229 226 if (c) -
uspace/srv/hid/input/layout/us_dvorak.c
rc38ab6c rb987eb4 225 225 char32_t c; 226 226 227 /* Produce no characters when Ctrl or Alt is pressed. */228 if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)229 return 0;230 231 227 c = translate(ev->key, map_neutral, sizeof(map_neutral) / sizeof(char32_t)); 232 228 if (c != 0) -
uspace/srv/hid/input/layout/us_qwerty.c
rc38ab6c rb987eb4 219 219 char32_t c; 220 220 221 /* Produce no characters when Ctrl or Alt is pressed. */222 if ((ev->mods & (KM_CTRL | KM_ALT)) != 0)223 return 0;224 225 221 c = translate(ev->key, map_neutral, sizeof(map_neutral) / sizeof(char32_t)); 226 222 if (c != 0)
Note:
See TracChangeset
for help on using the changeset viewer.