CA-256543: Added KP0-9 to keymap

QEMU EXT_KEY_ENCODING expects keysyms to KP0-9 to be sent, inorder to
figure out if NumsLock was pressed when VncClient was out of focus.

Adding KP0-9 to keymap, makes XC send correct keysym.
This commit is contained in:
Anoob Soman 2017-06-19 11:29:20 +01:00
parent add1b5d1ab
commit 7ef553f0d0
2 changed files with 124 additions and 4 deletions

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.4200 // Runtime Version:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@ -19,7 +19,7 @@ namespace XenAdmin.DotNetVnc {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class KeyMap { internal class KeyMap {
@ -690,6 +690,96 @@ namespace XenAdmin.DotNetVnc {
} }
} }
/// <summary>
/// Looks up a localized string similar to 0xffb0.
/// </summary>
internal static string NumPad0 {
get {
return ResourceManager.GetString("NumPad0", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb1.
/// </summary>
internal static string NumPad1 {
get {
return ResourceManager.GetString("NumPad1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb2.
/// </summary>
internal static string NumPad2 {
get {
return ResourceManager.GetString("NumPad2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb3.
/// </summary>
internal static string NumPad3 {
get {
return ResourceManager.GetString("NumPad3", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb4.
/// </summary>
internal static string NumPad4 {
get {
return ResourceManager.GetString("NumPad4", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb5.
/// </summary>
internal static string NumPad5 {
get {
return ResourceManager.GetString("NumPad5", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb6.
/// </summary>
internal static string NumPad6 {
get {
return ResourceManager.GetString("NumPad6", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb7.
/// </summary>
internal static string NumPad7 {
get {
return ResourceManager.GetString("NumPad7", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb8.
/// </summary>
internal static string NumPad8 {
get {
return ResourceManager.GetString("NumPad8", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0xffb9.
/// </summary>
internal static string NumPad9 {
get {
return ResourceManager.GetString("NumPad9", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to 0xff56. /// Looks up a localized string similar to 0xff56.
/// </summary> /// </summary>

View File

@ -112,10 +112,10 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<data name="Menu" xml:space="preserve"> <data name="Menu" xml:space="preserve">
<value>0xffe9</value> <value>0xffe9</value>
@ -177,6 +177,36 @@
<data name="NumLock" xml:space="preserve"> <data name="NumLock" xml:space="preserve">
<value>-1</value> <value>-1</value>
</data> </data>
<data name="NumPad0" xml:space="preserve">
<value>0xffb0</value>
</data>
<data name="NumPad1" xml:space="preserve">
<value>0xffb1</value>
</data>
<data name="NumPad2" xml:space="preserve">
<value>0xffb2</value>
</data>
<data name="NumPad3" xml:space="preserve">
<value>0xffb3</value>
</data>
<data name="NumPad4" xml:space="preserve">
<value>0xffb4</value>
</data>
<data name="NumPad5" xml:space="preserve">
<value>0xffb5</value>
</data>
<data name="NumPad6" xml:space="preserve">
<value>0xffb6</value>
</data>
<data name="NumPad7" xml:space="preserve">
<value>0xffb7</value>
</data>
<data name="NumPad8" xml:space="preserve">
<value>0xffb8</value>
</data>
<data name="NumPad9" xml:space="preserve">
<value>0xffb9</value>
</data>
<data name="Separator" xml:space="preserve"> <data name="Separator" xml:space="preserve">
<value>0xffac</value> <value>0xffac</value>
</data> </data>