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
In the input field of a chat application, I want to send with Enter and insert a line break with Shift+Enter
But, when shift_enter=True is set in the TextField component, the on_submit event fires when you press Enter to confirm the Japanese IME conversion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
In the input field of a chat application, I want to send with Enter and insert a line break with Shift+Enter
But, when shift_enter=True is set in the TextField component, the on_submit event fires when you press Enter to confirm the Japanese IME conversion.
https://flet.dev/docs/controls/textfield#shift_enter
For example in JS this can be achieved using the following property
https://developer.mozilla.org/ja/docs/Web/API/KeyboardEvent/isComposing
I want to achieve something similar in my Flet application.
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions