Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I created a TextEdit that automatically fills in a string of keyboard characters when switching from the desktop window. Can anyone tell me why? I am very distressed #5158

Closed
Dovelong0713 opened this issue May 1, 2024 · 4 comments
Labels
a:platform-windows Issue specific to Windows (mT,bS)

Comments

@Dovelong0713
Copy link

Dovelong0713 commented May 1, 2024

PixPin_2024-05-01_11-59-09_proc
I didn't perform any keyboard operations except by clicking the mouse. My environment is Windows 10, with slint 1.5.1,
https://github.com/slint-ui/slint/assets/140436474/e8dea63f-f5f0-4335-8503-93b1abce622a

@Dovelong0713
Copy link
Author

Such errors occur in both LineEdit and TextInput

@hunger
Copy link
Member

hunger commented May 2, 2024

What exactly are you doing? You work with some window and then click on the Slint preview to give it focus? And at that point the text shows up in the TextEdit inside the Preview?

Is this limited to the preview or does that also happen when you build your application?

Where does that text come from? Is that maybe in your clipboard at the time? Can you check by opening wordpad and hitting Ctrl-V in there? Does that produce the same text you find in your TextInput?

@hunger hunger added the a:platform-windows Issue specific to Windows (mT,bS) label May 2, 2024
@Dovelong0713
Copy link
Author

你到底在做什么?您使用某个窗口,然后单击 Slint 预览以使其集中注意力?此时,文本会显示在预览中的文本编辑中?

这是否仅限于预览版,还是在生成应用程序时也会发生这种情况?

这段文字从何而来?那可能在你当时的剪贴板里吗?您可以通过打开写字板并点击那里来检查吗?这是否会产生您在 TextInput 中找到的相同文本?Ctrl-V

I didn't perform any keyboard operations except by clicking the mouse.
When switching from the desktop window, it will automatically fill in a string of keyboard characters.

@Dovelong0713
Copy link
Author

Okay, for some reason, it automatically returned to normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:platform-windows Issue specific to Windows (mT,bS)
Projects
None yet
Development

No branches or pull requests

2 participants