GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Fix keybind detection and type annotation reading for the delete key
src/config.rs | 2 +-
src/widget/container/treelist.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/config.rs b/src/config.rs
index 7531993..2ccf0c7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -293,7 +293,7 @@ const PROP_NODES: &[&str] = &[
"gestures", "key_bindings", "pointer_bind", "gesture_bind",
"button", "button_strip", "dropdown", "toggle", "spinbox", "slider", "font_selector",
"status", "overlay", "backplate", "desktop", "list", "section", "textbox", "multiline", "editor", "tree",
- "menubar", "statusbar"
+ "menubar", "statusbar", "node"
];
fn get_or_create_node_mut<'a>(doc: &'a mut kdl::KdlDocument, path: &[&str]) -> Option<&'a mut kdl::KdlNode> {
diff --git a/src/widget/container/treelist.rs b/src/widget/container/treelist.rs
index 059032c..eb45e7d 100644
--- a/src/widget/container/treelist.rs
+++ b/src/widget/container/treelist.rs
@@ -908,7 +908,7 @@ impl Element for TreeList {
} else {
Some("rgb")
}
- } else if name == "key" || name == "keybind" || name == "shortcut" || name == "open_search" || name.ends_with("_key") || name.ends_with(".key") || name.ends_with(".keybind") || name.ends_with(".shortcut") {
+ } else if name == "key" || name == "keybind" || name == "shortcut" || name == "open_search" || name == "delete" || name.ends_with("_key") || name.ends_with(".key") || name.ends_with(".keybind") || name.ends_with(".shortcut") || name.ends_with("_delete") || name.ends_with(".delete") {
Some("keybind")
} else if name == "font" || name.ends_with("_font") || name.ends_with(".font") {
Some("font")