From deedcb2c4a2acdb484595cb97dfe354d99731e58 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 2 Aug 2021 18:53:02 -0400 Subject: [PATCH] Flip to view mode on field exit key combos --- piker/ui/_forms.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/piker/ui/_forms.py b/piker/ui/_forms.py index c784c3ca..8bf2104a 100644 --- a/piker/ui/_forms.py +++ b/piker/ui/_forms.py @@ -347,16 +347,10 @@ async def handle_field_input( Qt.Key_Space, # i feel like this is the "native" one Qt.Key_Alt, }: - fields.godwidget.setFocus() # linkedsplits.chart._vb.setFocus() - fields.godwidget.linkedsplits.focus() widget.clearFocus() - # fields.clearFocus() + fields.godwidget.focus() - # kill the widget focus and go back to main chart - # fields.godwidget.linkedsplits.focus() - # import tractor - # await tractor.breakpoint() continue @@ -456,7 +450,6 @@ def mk_health_bar( {3.32:.1f}% port """), font_size=_font.px_size - 6, - # font_color='default_spotlight', font_color='gunmetal', ) @@ -465,7 +458,6 @@ def mk_health_bar( {5e3/4/1e3:.2f}k $fill\n """), font_size=_font.px_size - 6, - # font_color='default_spotlight', font_color='gunmetal', )