gdkkeys-win32: Only perform substitution as last-resort
authorPhilip Zander <philip.zander@gmail.com>
Sun, 27 Feb 2022 15:32:59 +0000 (16:32 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Thu, 3 Mar 2022 08:59:53 +0000 (09:59 +0100)
commitcc561915b71eff788922df0f0fd4f3c3ea01ebe0
tree06ebe2b5b6e7b9effae764eab96e888f35b67218
parenta8ce293bfcb4f848efaf8ce546cdb395afe3492c
gdkkeys-win32: Only perform substitution as last-resort

Instead of performing keyboard layout substitution whenever we find a matching
entry in the registry, first try to load the original layout and only attempt
substitution when that fails.

See #4724
gdk/win32/gdkkeys-win32.c