- Load a default keymap when current keymap doesnt exist
This commit is contained in:
parent
c70e62f1d1
commit
04c6b21cf7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
xrdp-cvs-03-17-2010.tar.gz
|
||||
/xrdp-cvs-03-17-2010.tar.gz
|
||||
|
18
05-default-keymap.patch
Normal file
18
05-default-keymap.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/xrdp/lang.c b/xrdp/lang.c
|
||||
index 751d2ba..7ae351f 100644
|
||||
--- a/xrdp/lang.c
|
||||
+++ b/xrdp/lang.c
|
||||
@@ -234,6 +234,13 @@ get_keymaps(int keylayout, struct xrdp_keymap* keymap)
|
||||
g_file_close(fd);
|
||||
}
|
||||
}
|
||||
+ else if (keylayout != 0x409)
|
||||
+ {
|
||||
+ g_free(filename);
|
||||
+ g_writeln("keymap for 0x%4.4x was not found. Falling back to 0x0409 instead",
|
||||
+ keylayout);
|
||||
+ return get_keymaps(0x409, keymap);
|
||||
+ }
|
||||
g_free(filename);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user