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
Following on from #5493, I think this also reveals another issue with the MaskedInput:
Edit: Sorry just to clarify, this is relevant to initial focus or focus on tab. Clicking to focus the input seems to place the cursor without any text selection.
fromtextual.appimportApp, ComposeResultfromtextual.widgetsimportInput, Label, MaskedInputclassInputSelectionApp(App):
CSS=""" Label { margin: 1; } """defcompose(self) ->ComposeResult:
yieldLabel("Input text is now selected on focus by default.")
yieldLabel(
"This is obvious to the user for the Input widget ""where the selection is highlighted:"
)
yieldInput("text")
yieldLabel(
"But not the MaskedInput, ""which is confusing when typing will overwrite the previous text:"
)
yieldMaskedInput(template="AAAAAAAA;-", value="text")
if__name__=="__main__":
app=InputSelectionApp()
app.run()
The text was updated successfully, but these errors were encountered:
Following on from #5493, I think this also reveals another issue with the
MaskedInput
:Edit: Sorry just to clarify, this is relevant to initial focus or focus on tab. Clicking to focus the input seems to place the cursor without any text selection.
The text was updated successfully, but these errors were encountered: