Browse Source

Cleanup

feature/ImePreeditText
Benedikt Stebner 4 years ago
parent
commit
63539252a3
  1. 6
      samples/Sandbox/MainWindow.axaml
  2. 1
      src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

6
samples/Sandbox/MainWindow.axaml

@ -1,9 +1,5 @@
<Window xmlns="https://github.com/avaloniaui" <Window xmlns="https://github.com/avaloniaui"
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
x:Class="Sandbox.MainWindow"> x:Class="Sandbox.MainWindow">
<StackPanel> <TextBox />
<TextBox x:Name="txtBox" />
<TextPresenter Text="Hello World" PreeditText="{Binding #txtBox.Text}" CaretIndex="11"/>
</StackPanel>
</Window> </Window>

1
src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

@ -674,7 +674,6 @@ namespace Avalonia.Win32
case WindowsMessage.WM_IME_STARTCOMPOSITION: case WindowsMessage.WM_IME_STARTCOMPOSITION:
Imm32InputMethod.Current.IsComposing = true; Imm32InputMethod.Current.IsComposing = true;
return IntPtr.Zero; return IntPtr.Zero;
break;
case WindowsMessage.WM_IME_ENDCOMPOSITION: case WindowsMessage.WM_IME_ENDCOMPOSITION:
Imm32InputMethod.Current.IsComposing = false; Imm32InputMethod.Current.IsComposing = false;
break; break;

Loading…
Cancel
Save