mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #1583] [CLOSED] Reset the keyboard status after ToUnicodeEx #1816
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1816
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debauchee/barrier/pull/1583
Author: @pedronavf
Created: 2/26/2022
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
b43a831Reset the keyboard status after ToUnicodeEx📊 Changes
1 file changed (+13 additions, -2 deletions)
View changed files
📝
src/lib/platform/MSWindowsKeyState.cpp(+13 -2)📄 Description
After getting a dead key from
ToUnicodeEx, add an additionalVK_SPACEto the keyboard state so we reset the dead key flag and subsequent calls with modifiers, like shift, return the right result (-1) instead of 1.This happened because without reseting the dead key status the new one was attempted to be composed with the old one, which failed and the end result was a single unicode codepoint not marked as a dead key.
This opens the door to potentially use the returned unicode from the second call to
ToUnicodeExas the key character instead of maintaining the getDeadKey function.This should, hopefully, address issues like https://github.com/debauchee/barrier/issues/1267 or https://github.com/debauchee/barrier/issues/727 https://github.com/debauchee/barrier/issues/1143 or https://github.com/debauchee/barrier/issues/795
I have submitted the same patch to Synergy.
Contributor Checklist:
doc/newsfragmentsdirectory IF it is auser-visible change (and make sure to read the
README.mdin that directory)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.