diff --git a/ReferenceTests/src/tests/figures_and_makielayout.jl b/ReferenceTests/src/tests/figures_and_makielayout.jl index b61da7b1348..bd2179d7286 100644 --- a/ReferenceTests/src/tests/figures_and_makielayout.jl +++ b/ReferenceTests/src/tests/figures_and_makielayout.jl @@ -410,4 +410,16 @@ end Makie.Checkbox(f[2, 4], checked = false, checkboxcolor_unchecked = :yellow) Makie.Checkbox(f[2, 5], checked = true, checkboxcolor_checked = :orange) f -end \ No newline at end of file +end + +@reference_test "Textbox" begin + f = Figure() + tb = Makie.Textbox(f[1,1]) + Makie.set!(tb, "1234567890qwertyuiop") + tbw= Makie.Textbox(f[2,1], width=100) + Makie.set!(tbw, "1234567890qwertyuiop") + tbw.cursorindex[] = 20 + tbw.focused[] = true + f.scene.events.keyboardbutton[] = Makie.KeyEvent(Makie.Keyboard.backspace, Makie.Keyboard.press) + f +end