1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

TextEdit: You must explicitly choose singleline or multiline.

Multiline TextEdit now has a default height of 4 rows.
Added `ui.text_edit_singleline` and `ui.text_edit_multiline`.
This commit is contained in:
Emil Ernerfeldt
2020-11-13 11:22:00 +01:00
parent 8a0bc97e8c
commit 0340e2e6de
7 changed files with 56 additions and 22 deletions

View File

@@ -9,10 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added ⭐
* You can now check if a `TextEdit` lost keyboard focus with `response.lost_kb_focus`.
* Added `ui.text_edit_singleline` and `ui.text_edit_multiline`.
### Changed 🔧
* Pressing enter in a single-line `TextEdit` will now surrender keyboard focus for it
* Pressing enter in a single-line `TextEdit` will now surrender keyboard focus for it.
* You must now be explicit when creating a `TextEdit` if you want it to be singeline or multiline.
### Fixed 🐛