fix dioxus-tui events
This commit is contained in:
1 parent
0ab7a02777
commit
d06e64e5ad
19 files changed
+221
-21
No files matched your search
@@ -32,6 +32,13 @@ impl PartialEq for TouchData {
|
||||
}
|
||||
|
||||
impl TouchData {
|
||||
/// Create a new TouchData
|
||||
pub fn new(inner: impl HasTouchData + 'static) -> Self {
|
||||
Self {
|
||||
inner: Box::new(inner),
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the "ALT" key was down when the touch event was fired.
|
||||
pub fn alt_key(&self) -> bool {
|
||||
self.inner.alt_key()
|
||||
|
||||
Reference in new issue
Block a user