diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-06 21:31:09 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-06 21:31:09 +0530 |
commit | 65321d786aa105f3f99ea43144f9f4b5a4ee4574 (patch) | |
tree | 160a234fd58ae0cab5aed363fe02fe91db005e94 /src/interactive/widgets/mark.rs | |
parent | 80f7a0629954d05c3397f80cd0f9a74ae0a3f002 (diff) |
tests to verify focus handling works
Diffstat (limited to 'src/interactive/widgets/mark.rs')
-rw-r--r-- | src/interactive/widgets/mark.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs index 70657b7..40bf959 100644 --- a/src/interactive/widgets/mark.rs +++ b/src/interactive/widgets/mark.rs @@ -26,6 +26,9 @@ pub struct MarkPaneProps { } impl MarkPane { + pub fn has_focus(&self) -> bool { + self.has_focus + } pub fn set_focus(&mut self, has_focus: bool) { self.has_focus = has_focus; if has_focus { |