@@ -279,11 +279,7 @@ class App(Generic[ReturnType], DOMNode):
279279 also the `sub_title` attribute.
280280 """
281281
282- BINDINGS = [
283- Binding ("ctrl+c" , "quit" , "Quit" , show = False , priority = True ),
284- Binding ("tab" , "focus_next" , "Focus Next" , show = False ),
285- Binding ("shift+tab" , "focus_previous" , "Focus Previous" , show = False ),
286- ]
282+ BINDINGS = [Binding ("ctrl+c" , "quit" , "Quit" , show = False , priority = True )]
287283
288284 title : Reactive [str ] = Reactive ("" , compute = False )
289285 sub_title : Reactive [str ] = Reactive ("" , compute = False )
@@ -1984,7 +1980,7 @@ def _binding_chain(self) -> list[tuple[DOMNode, Bindings]]:
19841980 def _modal_binding_chain (self ) -> list [tuple [DOMNode , Bindings ]]:
19851981 """The binding chain, ignoring everything before the last modal."""
19861982 binding_chain = self ._binding_chain
1987- for index , (node , _bindings ) in enumerate (binding_chain ):
1983+ for index , (node , _bindings ) in enumerate (binding_chain , 1 ):
19881984 if node .is_modal :
19891985 return binding_chain [:index ]
19901986 return binding_chain
0 commit comments