From ac77686c63e5ccc7bfe4986edf6e5cdc1d4b4338 Mon Sep 17 00:00:00 2001 From: Nicola Carminati Date: Fri, 27 Apr 2018 10:38:38 +0200 Subject: [PATCH] Client: Siemens-Tested and fixed HMI-commands --- Client/View/MainForm.cs | 2 +- Client/View/NcWindow.cs | 2 +- Step.Utils/languages/IT.xml | 10 ++--- .../modules/under-the-hood/nc-hmi-menu.vue | 42 ++++++++++--------- 4 files changed, 29 insertions(+), 27 deletions(-) diff --git a/Client/View/MainForm.cs b/Client/View/MainForm.cs index 3bf81407..d0554b96 100644 --- a/Client/View/MainForm.cs +++ b/Client/View/MainForm.cs @@ -588,7 +588,7 @@ namespace CMS_Client.View public void keyPressedHandler(bool altPressed, bool ctrlPressed, bool shiftPressed, int key) { //Work only if is a Developer mode - if (Config.ClientConfig.DeveloperMode) + if (Config.ClientConfig.DeveloperMode && altPressed) { if (key == (int)Keys.F1) Browser.GoBack(); diff --git a/Client/View/NcWindow.cs b/Client/View/NcWindow.cs index 224e40e2..e644b21c 100644 --- a/Client/View/NcWindow.cs +++ b/Client/View/NcWindow.cs @@ -837,7 +837,7 @@ namespace CMS_Client.View if (KeybPID == MainProcessPID || KeybPID == NcProcessPID) { //Filter if is keydown - if (wParam == HWND_KEYUP) + if (wParam == HWND_SYSKEYDOWN) mainFrm.keyPressedHandler(altPressed, ctrlPressed, shiftPressed, Key); } diff --git a/Step.Utils/languages/IT.xml b/Step.Utils/languages/IT.xml index 1001dbd9..286c483f 100644 --- a/Step.Utils/languages/IT.xml +++ b/Step.Utils/languages/IT.xml @@ -98,12 +98,12 @@ Utensili - Machine - Parameter - Program + Macchina + Parametri + Programma Prog. Manager - Diagnostics - Setup + Diagnostica + Messa in serv. Pos diff --git a/Step/wwwroot/src/modules/under-the-hood/nc-hmi-menu.vue b/Step/wwwroot/src/modules/under-the-hood/nc-hmi-menu.vue index cb9aeecd..88da675a 100644 --- a/Step/wwwroot/src/modules/under-the-hood/nc-hmi-menu.vue +++ b/Step/wwwroot/src/modules/under-the-hood/nc-hmi-menu.vue @@ -1,9 +1,9 @@