Forms · An IME composition restarts the caret's blink, as every edit does, and logs its ranges (#7)
This commit is contained in:
1 parent
1f297c7801
commit
2a18e9d0b3
4 files changed
+45
-1
No files matched your search
@@ -94,6 +94,12 @@ impl EntityInputHandler for TextInput {
|
||||
if self.disabled {
|
||||
return;
|
||||
}
|
||||
log::debug!(
|
||||
"text input {:?}: compose {range_utf16:?} selecting {selected_utf16:?} marked {:?} selection {:?}",
|
||||
cx.entity_id(),
|
||||
self.marked,
|
||||
self.selection
|
||||
);
|
||||
let range = range_utf16
|
||||
.map(|range| self.range_from_utf16(&range))
|
||||
.or(self.marked.clone())
|
||||
@@ -114,7 +120,7 @@ impl EntityInputHandler for TextInput {
|
||||
None => range.start + text.len()..range.start + text.len(),
|
||||
};
|
||||
self.reversed = false;
|
||||
cx.notify();
|
||||
self.restart_blink(cx);
|
||||
}
|
||||
|
||||
fn bounds_for_range(
|
||||
|
||||
Reference in new issue
Block a user