|
@@ -14,8 +14,9 @@ use dioxus_native_core::{
|
|
|
state::NodeDepState,
|
|
|
};
|
|
|
|
|
|
-#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
|
|
+#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
|
|
|
pub(crate) enum FocusLevel {
|
|
|
+ #[default]
|
|
|
Unfocusable,
|
|
|
Focusable,
|
|
|
Ordered(std::num::NonZeroU16),
|
|
@@ -53,12 +54,6 @@ impl Ord for FocusLevel {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl Default for FocusLevel {
|
|
|
- fn default() -> Self {
|
|
|
- FocusLevel::Unfocusable
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
#[derive(Clone, PartialEq, Debug, Default)]
|
|
|
pub(crate) struct Focus {
|
|
|
pub level: FocusLevel,
|