mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
fix: desktop session: Shift no longer stays held after typing capitals on a physical keyboard (#766)
* fix: desktop session: Shift no longer stays held after typing capitals on a physical keyboard Android repeats a held key as more key presses. Those were forwarded to the session as more wl_keyboard presses, and KWin's xkb counts every press of a modifier, so Shift held for a few capitals took several presses and one release and stayed held: digits typed !@#, letters stayed capital. The same applied to Ctrl and Alt. - the compositor no longer sends a press for a key that is already down; releases always go through (clients repeat keys themselves from the repeat_info it already sends) - the app stops forwarding Android's repeat events for keyboard keys Reported by whatsupbros with a Keychron Q7 over USB - thank you. * Remove stale comments from statx patch --------- Co-authored-by: The412Banner <the412banner@users.noreply.github.com> Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
This commit is contained in:
1 parent
b616c9bef4
commit
34969ccf44
3 files changed
+9
-18
No files matched your search
@@ -1577,6 +1577,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
if (event.keyCode != KeyEvent.KEYCODE_BACK && padBridge?.onKeyEvent(event) == true) return true
|
||||
if (CompositorHost.isStarted && event.keyCode != KeyEvent.KEYCODE_BACK && !fromController) {
|
||||
val down = event.action == KeyEvent.ACTION_DOWN
|
||||
if (down && event.repeatCount > 0) return true
|
||||
if (down || event.action == KeyEvent.ACTION_UP) {
|
||||
var evdev = EvdevKeys.fromKeyCode(event.keyCode)
|
||||
val ch = event.unicodeChar
|
||||
|
||||
Reference in new issue
Block a user