GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Add placeholder examples to KeybindRow text inputs
src/widget/input/keybinds_control.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/widget/input/keybinds_control.rs b/src/widget/input/keybinds_control.rs
index 8cd2a81..b168c04 100644
--- a/src/widget/input/keybinds_control.rs
+++ b/src/widget/input/keybinds_control.rs
@@ -13,8 +13,8 @@ pub struct KeybindRow {
impl KeybindRow {
pub fn new(binding: String, command: String) -> Self {
- let key_input = TextBox::new(binding);
- let cmd_input = TextBox::new(command);
+ let key_input = TextBox::new(binding).with_placeholder("e.g. super+shift+q");
+ let cmd_input = TextBox::new(command).with_placeholder("e.g. close");
let remove_button = Button::new(0.0, 0.0, 0.0, 0.0).with_label("Remove");
Self {
key_input,