Skip to content

Commit 2277030

Browse files
committed
hide esc
1 parent 3992a38 commit 2277030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/demo/widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from textual import containers
1010
from textual.app import ComposeResult
11+
from textual.binding import Binding
1112
from textual.demo.data import COUNTRIES
1213
from textual.demo.page import PageScreen
1314
from textual.reactive import reactive, var
@@ -446,7 +447,7 @@ class WidgetsScreen(PageScreen):
446447
}
447448
"""
448449

449-
BINDINGS = [("escape", "unfocus", "Unfocus any focused widget")]
450+
BINDINGS = [Binding("escape", "unfocus", "Unfocus any focused widget", show=False)]
450451

451452
def compose(self) -> ComposeResult:
452453
with containers.VerticalScroll() as container:

0 commit comments

Comments
 (0)