mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-15 17:38:57 +08:00
Add non focusable components. (#172)
This commit is contained in:
@@ -53,6 +53,10 @@ class ButtonBase : public ComponentBase {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Focusable() const final {
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
ConstStringRef label_;
|
||||
std::function<void()> on_click_;
|
||||
|
||||
Reference in New Issue
Block a user