Skip to content

Commit

Permalink
#4314 forgot to add key mapping file
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 3, 2024
1 parent c3d8bee commit 643169e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions xpra/client/qt6/keys.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file is part of Xpra.
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

from PyQt6.QtCore import Qt

key_names = {}

for attr in dir(Qt.Key):
if attr.startswith("Key_"):
key_enum = getattr(Qt.Key, attr)
key_names[key_enum] = attr[4:]

0 comments on commit 643169e

Please sign in to comment.