From 7ef553f0d0c7660264ca8d14d95773c935f90b96 Mon Sep 17 00:00:00 2001 From: Anoob Soman Date: Mon, 19 Jun 2017 11:29:20 +0100 Subject: [PATCH] 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. --- XenCenterVNC/KeyMap.Designer.cs | 94 ++++++++++++++++++++++++++++++++- XenCenterVNC/KeyMap.resx | 34 +++++++++++- 2 files changed, 124 insertions(+), 4 deletions(-) diff --git a/XenCenterVNC/KeyMap.Designer.cs b/XenCenterVNC/KeyMap.Designer.cs index 959c8953d..22d0100e7 100644 --- a/XenCenterVNC/KeyMap.Designer.cs +++ b/XenCenterVNC/KeyMap.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // 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 // the code is regenerated. @@ -19,7 +19,7 @@ namespace XenAdmin.DotNetVnc { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // 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.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class KeyMap { @@ -690,6 +690,96 @@ namespace XenAdmin.DotNetVnc { } } + /// + /// Looks up a localized string similar to 0xffb0. + /// + internal static string NumPad0 { + get { + return ResourceManager.GetString("NumPad0", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb1. + /// + internal static string NumPad1 { + get { + return ResourceManager.GetString("NumPad1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb2. + /// + internal static string NumPad2 { + get { + return ResourceManager.GetString("NumPad2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb3. + /// + internal static string NumPad3 { + get { + return ResourceManager.GetString("NumPad3", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb4. + /// + internal static string NumPad4 { + get { + return ResourceManager.GetString("NumPad4", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb5. + /// + internal static string NumPad5 { + get { + return ResourceManager.GetString("NumPad5", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb6. + /// + internal static string NumPad6 { + get { + return ResourceManager.GetString("NumPad6", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb7. + /// + internal static string NumPad7 { + get { + return ResourceManager.GetString("NumPad7", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb8. + /// + internal static string NumPad8 { + get { + return ResourceManager.GetString("NumPad8", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 0xffb9. + /// + internal static string NumPad9 { + get { + return ResourceManager.GetString("NumPad9", resourceCulture); + } + } + /// /// Looks up a localized string similar to 0xff56. /// diff --git a/XenCenterVNC/KeyMap.resx b/XenCenterVNC/KeyMap.resx index 0f97cefb2..7f4e70941 100644 --- a/XenCenterVNC/KeyMap.resx +++ b/XenCenterVNC/KeyMap.resx @@ -112,10 +112,10 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 0xffe9 @@ -177,6 +177,36 @@ -1 + + 0xffb0 + + + 0xffb1 + + + 0xffb2 + + + 0xffb3 + + + 0xffb4 + + + 0xffb5 + + + 0xffb6 + + + 0xffb7 + + + 0xffb8 + + + 0xffb9 + 0xffac