mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-29 11:11:35 +00:00
fix: Switch to Windows 11 keymap when running Windows 11. Closes #494
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: cp1252 -*-
|
||||
import os
|
||||
import sys
|
||||
import config_utils
|
||||
import paths
|
||||
import logging
|
||||
@@ -21,7 +22,10 @@ def setup ():
|
||||
log.debug("Loading keymap...")
|
||||
global keymap
|
||||
if float(platform.version()[:2]) >= 10 and app["app-settings"]["load_keymap"] == "default.keymap":
|
||||
app["app-settings"]["load_keymap"] = "Windows 10.keymap"
|
||||
if sys.getwindowsversion().build > 22000:
|
||||
app["app-settings"]["load_keymap"] = "Windows11.keymap"
|
||||
else:
|
||||
app["app-settings"]["load_keymap"] = "Windows 10.keymap"
|
||||
app.write()
|
||||
global changed_keymap
|
||||
changed_keymap = True
|
||||
|
Reference in New Issue
Block a user