-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4314 forgot to add key mapping file
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> | ||
# 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:] |