Add an input example to gpui (#13534)

Add a single-line text input example to gpui

(I'm hoping to be able to debug keyboard issues without rebuilding the
whole
app every time)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2024-06-25 22:06:50 -06:00
committed by GitHub
parent eb914682b3
commit b43df6048b
5 changed files with 503 additions and 3 deletions
+1
View File
@@ -12390,6 +12390,7 @@ impl ViewInputHandler for Editor {
let font_id = cx.text_system().resolve_font(&style.text.font());
let font_size = style.text.font_size.to_pixels(cx.rem_size());
let line_height = style.text.line_height_in_pixels(cx.rem_size());
let em_width = cx
.text_system()
.typographic_bounds(font_id, font_size, 'm')