fix dioxus-tui events
This commit is contained in:
1 parent
0ab7a02777
commit
d06e64e5ad
19 files changed
+221
-21
No files matched your search
@@ -27,6 +27,14 @@ impl PartialEq for CompositionData {
|
||||
}
|
||||
|
||||
impl CompositionData {
|
||||
/// Create a new CompositionData
|
||||
pub fn new(inner: impl HasCompositionData + 'static) -> Self {
|
||||
Self {
|
||||
inner: Box::new(inner),
|
||||
}
|
||||
}
|
||||
|
||||
/// The characters generated by the input method that raised the event
|
||||
pub fn data(&self) -> String {
|
||||
self.inner.data()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user