mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
wayland IME: Discard completed delete request
Co-authored-by: dcz <gilapfco.dcz@porcupinefactory.org>
This commit is contained in:
@@ -150,7 +150,7 @@ impl Dispatch<ZwpTextInputV3, TextInputData, WinitState> for TextInputState {
|
|||||||
// 6. Place cursor inside preedit text.
|
// 6. Place cursor inside preedit text.
|
||||||
|
|
||||||
if let Some(DeleteSurroundingText { before, after }) =
|
if let Some(DeleteSurroundingText { before, after }) =
|
||||||
text_input_data.pending_delete
|
text_input_data.pending_delete.take()
|
||||||
{
|
{
|
||||||
state.events_sink.push_window_event(
|
state.events_sink.push_window_event(
|
||||||
WindowEvent::Ime(Ime::DeleteSurrounding {
|
WindowEvent::Ime(Ime::DeleteSurrounding {
|
||||||
|
|||||||
Reference in New Issue
Block a user