mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
remove allow forward
This commit is contained in:
@@ -121,9 +121,3 @@ class Bindings:
|
|||||||
return self.keys[key]
|
return self.keys[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise NoBinding(f"No binding for {key}") from None
|
raise NoBinding(f"No binding for {key}") from None
|
||||||
|
|
||||||
def allow_forward(self, key: str) -> bool:
|
|
||||||
binding = self.keys.get(key, None)
|
|
||||||
if binding is None:
|
|
||||||
return True
|
|
||||||
return not binding.universal
|
|
||||||
|
|||||||
Reference in New Issue
Block a user