From 5d2008a6dde3e27cbf244af0bb3a24ff78f13203 Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Thu, 2 Mar 2023 10:24:15 +0100 Subject: [PATCH] DataEntry.S620 : Slovak keyboard check. --- TBF/Rig/DataEntry/S620/FormForMechanicalMeters.cs | 7 +++++++ .../DataEntry/S620/FormForMechanicalMetersWithTracing.cs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/TBF/Rig/DataEntry/S620/FormForMechanicalMeters.cs b/TBF/Rig/DataEntry/S620/FormForMechanicalMeters.cs index 8a3960514..afd699071 100644 --- a/TBF/Rig/DataEntry/S620/FormForMechanicalMeters.cs +++ b/TBF/Rig/DataEntry/S620/FormForMechanicalMeters.cs @@ -488,6 +488,13 @@ namespace TBF.Rig.DataEntry.S620 /// TextBox control which received the event private void ProcKeyPress(object sender, KeyPressEventArgs e, ComboBox currentFocusOwner) { + if (e.KeyChar == 'ľ' || e.KeyChar == 'š' || e.KeyChar == 'č' || e.KeyChar == 'ť' || e.KeyChar == 'ž' || e.KeyChar == 'ý' || e.KeyChar == 'á' || e.KeyChar == 'í' || e.KeyChar == 'é') + { + MessageBox.Show("Zlá klávesnica !!!"); + e.Handled = true; + return; + } + if (e.KeyChar == '+') { /// Process '+' key ..... Form completed diff --git a/TBF/Rig/DataEntry/S620/FormForMechanicalMetersWithTracing.cs b/TBF/Rig/DataEntry/S620/FormForMechanicalMetersWithTracing.cs index 0a31374f2..0c57dad01 100644 --- a/TBF/Rig/DataEntry/S620/FormForMechanicalMetersWithTracing.cs +++ b/TBF/Rig/DataEntry/S620/FormForMechanicalMetersWithTracing.cs @@ -859,6 +859,13 @@ namespace TBF.Rig.DataEntry.S620 /// TextBox control which received the event private void BodyNoTextBoxKeyPress(object sender, KeyPressEventArgs e, int wmNr0) { + if (e.KeyChar == 'ľ' || e.KeyChar == 'š' || e.KeyChar == 'č' || e.KeyChar == 'ť' || e.KeyChar == 'ž' || e.KeyChar == 'ý' || e.KeyChar == 'á' || e.KeyChar == 'í' || e.KeyChar == 'é') + { + MessageBox.Show("Zlá klávesnica !!!"); + e.Handled = true; + return; + } + if (closeButton != '\0' && e.KeyChar == closeButton) { /// Process '+' key ..... Form completed