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
It's weird that text can be selected in 2 places at the same time. When input is focused, it's impossible to copy selected text from another place - ctrl+c tries to copy from Input instead of the mouse-selected text.
MRE1:
Launch this app
Select the text above the input with your mouse
(Optionally) press ctrl+c, then ctrl+v -
from __future__ importannotationsfromtextual.appimportApp, ComposeResultfromtextual.widgetsimportInput, StaticclassExampleApp(App):
defcompose(self) ->ComposeResult:
yieldStatic("Some text that can be selected")
yieldInput("Something")
if__name__=="__main__":
ExampleApp().run()
MRE2:
Launch this app
Select the text above the input with your mouse
Press Ctrl+c
Press on Input
Press Ctrl+v
result: text is not copied and pasted, because there is noting to copy from in the Input, and it takes precedence
from __future__ importannotationsfromtextual.appimportApp, ComposeResultfromtextual.widgetsimportInput, StaticclassExampleApp(App):
defcompose(self) ->ComposeResult:
yieldStatic("Some text that can be selected")
yieldInput()
if__name__=="__main__":
ExampleApp().run()
The text was updated successfully, but these errors were encountered:
It's weird that text can be selected in 2 places at the same time. When input is focused, it's impossible to copy selected text from another place - ctrl+c tries to copy from Input instead of the mouse-selected text.
MRE1:
MRE2:
result: text is not copied and pasted, because there is noting to copy from in the Input, and it takes precedence
The text was updated successfully, but these errors were encountered: