Changeset b987eb4 in mainline for uspace/lib/ui/src/entry.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 &&
Note:
See TracChangeset
for help on using the changeset viewer.