Commit 1346e496 authored by Alex Butler's avatar Alex Butler

Fix gpu_cache example backspace & redraw on modification

parent c0eea763
Pipeline #7045 passed with stages
in 7 minutes and 34 seconds
......@@ -136,9 +136,12 @@ You can also try resizing this window."
}
| WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
WindowEvent::ReceivedCharacter(c) => {
if c != '\u{7f}' && c != '\u{8}' {
text.push(c);
match c {
'\u{8}' => { text.pop(); },
_ if c != '\u{7f}' => text.push(c),
_ => {}
}
display.gl_window().window().request_redraw();
}
_ => (),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment