@@ -545,27 +545,27 @@ class PriorityOverlapWidget(Static, can_focus=True):
545545 """A focusable widget with a priority binding."""
546546
547547 BINDINGS = [
548- Binding ("0" , "record('widget_0')" , "0" , priority = False ),
549- Binding ("a" , "record('widget_a')" , "a" , priority = False ),
550- Binding ("b" , "record('widget_b')" , "b" , priority = False ),
551- Binding ("c" , "record('widget_c')" , "c" , priority = True ),
552- Binding ("d" , "record('widget_d')" , "d" , priority = False ),
553- Binding ("e" , "record('widget_e')" , "e" , priority = True ),
554- Binding ("f" , "record('widget_f')" , "f" , priority = True ),
548+ Binding ("0" , "app. record('widget_0')" , "0" , priority = False ),
549+ Binding ("a" , "app. record('widget_a')" , "a" , priority = False ),
550+ Binding ("b" , "app. record('widget_b')" , "b" , priority = False ),
551+ Binding ("c" , "app. record('widget_c')" , "c" , priority = True ),
552+ Binding ("d" , "app. record('widget_d')" , "d" , priority = False ),
553+ Binding ("e" , "app. record('widget_e')" , "e" , priority = True ),
554+ Binding ("f" , "app. record('widget_f')" , "f" , priority = True ),
555555 ]
556556
557557
558558class PriorityOverlapScreen (Screen ):
559559 """A screen with a priority binding."""
560560
561561 BINDINGS = [
562- Binding ("0" , "record('screen_0')" , "0" , priority = False ),
563- Binding ("a" , "record('screen_a')" , "a" , priority = False ),
564- Binding ("b" , "record('screen_b')" , "b" , priority = True ),
565- Binding ("c" , "record('screen_c')" , "c" , priority = False ),
566- Binding ("d" , "record('screen_d')" , "c" , priority = True ),
567- Binding ("e" , "record('screen_e')" , "e" , priority = False ),
568- Binding ("f" , "record('screen_f')" , "f" , priority = True ),
562+ Binding ("0" , "app. record('screen_0')" , "0" , priority = False ),
563+ Binding ("a" , "app. record('screen_a')" , "a" , priority = False ),
564+ Binding ("b" , "app. record('screen_b')" , "b" , priority = True ),
565+ Binding ("c" , "app. record('screen_c')" , "c" , priority = False ),
566+ Binding ("d" , "app. record('screen_d')" , "c" , priority = True ),
567+ Binding ("e" , "app. record('screen_e')" , "e" , priority = False ),
568+ Binding ("f" , "app. record('screen_f')" , "f" , priority = True ),
569569 ]
570570
571571 def compose (self ) -> ComposeResult :
@@ -598,7 +598,7 @@ async def test_overlapping_priority_bindings() -> None:
598598 """Test an app stack with overlapping bindings."""
599599 async with PriorityOverlapApp ().run_test () as pilot :
600600 await pilot .press (* "0abcdef" )
601- await pilot .pause (5 / 100 )
601+ await pilot .pause (2 / 100 )
602602 assert pilot .app .pressed_keys == [
603603 "widget_0" ,
604604 "app_a" ,
0 commit comments