keymanapp / keymanapp/keyman

bug(windows): Closing or navigating OSK strands a sticky modifier

Open
#16,462 0 comments 0 reactions 1 assignee Claimed by @MattGyverLee View on GitHub
bug windows/
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

### Describe the bug

When exiting the OSK, switching keyboards, or switching to the character map while a modifier has been enabled, the OSK can leave remnants of those modifiers active.
I know that the OSK is not a current focus, but fixing these rounds out the known sticky modifiers.

### Reproduce the bug

1. Enable a Keyman Keyboard
2. Open the OSK
3. Click any modifier key to activate it.
4. Close the OSK via the Keyman taskbar icon>On-screen Keyboard
5. Type somewhere, and that modifier is still active.
6. Tapping the physical modifier (If you have that key) or returning to OSK and clicking the modifier will usually clear it.

### Expected behavior

Held modifiers should clear when the OSK closes.

### Related issues

#8064

### Keyman apps

- [ ] Keyman for Android
- [ ] Keyman for iPhone and iPad
- [ ] Keyman for Linux
- [ ] Keyman for macOS
- [x] Keyman for Windows
- [ ] Keyman Developer
- [ ] KeymanWeb
- [ ] Other - give details at bottom of form

### Keyman version

19.0.276 and earlier.

### Operating system

Win 11

### Device

Windows Laptop

### Target application

Any, tested in notepad.

### Browser

_No response_

### Keyboard name

_No response_

### Keyboard version

_No response_

### Language name

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.