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
While typing テスト then あか with Gboard Japanese keyboard in a simple Avalonia apps, it somehow tries to move the cursor forcefully back to beginning at random timing.
screen-20250121-223723-edited.mp4
Such behavior makes Japanese input almost impossible.
To Reproduce
Create an Avalonia project with Community Toolkit and Compiled Bindings
EDIT: Upgrade TargetFramework to net9.0-* in all projects
Edit the MainView.axaml as shown below
Edit the MainViewModel.cs as shown below
Start debugging with physical Android device with Gboard and its Japanese QWERTY keyboard installed
Type irohanihoheto and look at the hiragana shown in text box
MainView.axaml
<UserControlxmlns="https://github.com/avaloniaui"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:vm="clr-namespace:AvaloniaInputMethod.ViewModels"mc:Ignorable="d"d:DesignWidth="800"d:DesignHeight="450"x:Class="AvaloniaInputMethod.Views.MainView"x:DataType="vm:MainViewModel">
<Design.DataContext>
<!-- This only sets the DataContext for the previewer in an IDE, to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
<vm:MainViewModel />
</Design.DataContext>
<DockPanel>
<Border DockPanel.Dock="Top"Margin="2"BorderBrush="{DynamicResource TextControlBorderBrush}"BorderThickness="1"CornerRadius="2">
<TextBlockText="{Binding Input, Mode=OneWay}"/>
</Border>
<TextBoxText="{Binding Input, Mode=TwoWay}"AcceptsReturn="True"Margin="2"/>
</DockPanel>
</UserControl>
#18030 will help here too (but after messing around with keyboard switching I also managed to enter some weird state where I would not get complete hiragana syllables but always Latin consonant and hiragana vowel - it only happened once though).
qemu-system-x86_64_NhyUCWFrJZ.mp4
On master, typing gets incredibly laggy after just a couple of syllables. I think it must be some snowball effect of cyclical selection/composition changes. Nevertheless, the lag disappears with my PR change.
Describe the bug
While typing
テスト
thenあか
with Gboard Japanese keyboard in a simple Avalonia apps, it somehow tries to move the cursor forcefully back to beginning at random timing.screen-20250121-223723-edited.mp4
Such behavior makes Japanese input almost impossible.
To Reproduce
TargetFramework
tonet9.0-*
in all projectsMainView.axaml
as shown belowMainViewModel.cs
as shown belowirohanihoheto
and look at the hiragana shown in text boxMainView.axaml
MainViewModel.cs
Expected behavior
いろはにほへと
must be shown inTextBox
Avalonia version
11.2.3
OS
Android
Additional context
Phone: Sony Xperia 1 IV (SOG06) Android 14.0 API 34
Input Method: Gboard 14.8.05.686567880-release-arm64-v8a
The text was updated successfully, but these errors were encountered: