You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from textual.app import App, ComposeResult
from textual.containers import VerticalScroll
from textual.widgets import Button
class TestApp(App):
def compose(self) -> ComposeResult:
# yield Header()
with VerticalScroll():
yield Button("hello", id="output")
if __name__ == "__main__":
app = TestApp()
app.run(inline=True)
run with textual run --dev test.py and you will see f3 key events in the console; it appears they are raised each time the app gains or loses focus, or redraws.
Uncomment the Header, run with inline=False, or set a css height under 100% and they stop appearing.
The text was updated successfully, but these errors were encountered:
If you're running in inline mode, presumably you wouldn't want the app to take up the full screen anyway? Adding a max-height to the screen seems to fix this issue:
CSS=""" Screen:inline { max-height: 97vh; } """
Running this in debug mode, it looks like it is the cursor position that's being misinterpreted as a F3 key press.
I don't quite understand why, but I'm guessing related to the screen height being auto in inline mode? From a quick git bisect, it looks like this was introduced in 80175f0, if it helps someone figure this out!
I see a lot of F3 key events on the console when I have a VerticalScroll which is taking up 100% of the height of an inline app, eg:
To recreate:
run with
textual run --dev test.py
and you will see f3 key events in the console; it appears they are raised each time the app gains or loses focus, or redraws.Uncomment the
Header
, run withinline=False
, or set a css height under 100% and they stop appearing.The text was updated successfully, but these errors were encountered: