dev-python/pynput: add 1.8.2

Add python 14

Signed-off-by: Dale Showers <gentoo@fictx.com>
This commit is contained in:
Dale Showers
2026-06-02 15:34:27 -04:00
parent aae1e359a0
commit 157b45a909
3 changed files with 30 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ diff --git a/lib/pynput/_util/uinput.py b/lib/pynput/_util/uinput.py
index b0a6a78..c891b83 100644
--- a/lib/pynput/_util/uinput.py
+++ b/lib/pynput/_util/uinput.py
@@ -72,6 +72,14 @@ def _device(self, paths):
@@ -72,6 +72,14 @@ class ListenerMixin(object):
except OSError:
continue
@@ -17,21 +17,3 @@ index b0a6a78..c891b83 100644
# Does this device provide more handled event codes?
capabilities = next_dev.capabilities()
next_count = sum(
diff --git a/lib/pynput/keyboard/_uinput.py b/lib/pynput/keyboard/_uinput.py
index 2f63dd3..747d19d 100644
--- a/lib/pynput/keyboard/_uinput.py
+++ b/lib/pynput/keyboard/_uinput.py
@@ -204,10 +204,10 @@ def as_char(k):
as_char(key): (
vk,
set()
- | {Key.shift} if i & 1 else set()
- | {Key.alt_gr} if i & 2 else set())
+ | ({Key.shift} if i & 1 else set())
+ | ({Key.alt_gr} if i & 2 else set()))
for vk, keys in self._vk_table.items()
- for i, key in enumerate(keys)
+ for i, key in reversed(list(enumerate(keys)))
if key is not None and as_char(key) is not None}
def for_vk(self, vk, modifiers):