Touch keyboard is not displayed properly on Windows
See original GitHub issueTouching a TextBox
does not bring up the keyboard. Touching “native” Windows text input like Notepad or similar will bring up the keyboard.
Expected behavior When I touch a textbox on a touch screen I want this keyboard to be displayed:
- Avalonia
- Version 11.0.preview4
- Windows
- Edition: Windows 10 Pro
- Version: 21H2
- OS Build: 19044.2364
- Display Language: English
- Keyboard Layout: Swedish / English
_Originally posted by @mgnslndh in https://github.com/AvaloniaUI/Avalonia/discussions/9974
Issue Analytics
- State:
- Created 8 months ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Touch keyboard still not working
Click on the Start menu and select Settings or do a search for it and open it from there. Then head over to...
Read more >Fix On-Screen Keyboard not working in Windows 11/10
On-Screen Keyboard not working · 1] Check Touch Keyboard Services · 2] Enable Touch Keyboard when in Tablet Mode · 3] Run System...
Read more >Top 6 Ways to Fix On-Screen Keyboard Not Working ...
1. Enable On-Screen Keyboard · 2. Try Alternative Methods to Open On-Screen Keyboard · 3. Check if Touch Keyboard and Handwriting Panel Service...
Read more >FIX: On-Screen Keyboard not working in Windows 10/11
Select Keyboard from the left side menu and enable it by switching on Turn on the On-Screen Keyboard option. Fix On-Screen Keyboard not...
Read more >How to make the Microsoft Windows 10 or 11 on-screen ...
Turn ON Show the touch keyboard or handwriting panel when not in tablet mode and there's no keyboard attached. Devices. Windows 11: Select...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
I have been doing a little bit of research on this. From my reading of Respond to the presence of the touch keyboard it seems to imply that the touch keyboard appearance is controlled by UI Automation. The AutomationPeer classes appear to be present in Avalonia so that might not be the case then.
For the input scope to show different keyboard layouts it looks like the interfaces from Text Services Framework would need to be implemented. Using the SetInputScope function is a possibility but the documentation suggests that applications should not be using this directly and implement the interfaces instead (ITfInputScope interface).
maybe this could help https://stackoverflow.com/a/40921638 and for changing layout setinputscope should be working https://learn.microsoft.com/en-us/windows/win32/api/inputscope/nf-inputscope-setinputscope when added here https://github.com/AvaloniaUI/Avalonia/blob/38fb9f18c463abb39eedd49e3f97004d6f7dc6f5/src/Windows/Avalonia.Win32/Input/Imm32InputMethod.cs#L268