From eec2b3cbaeb83d5597709be58a234d1e9685fcbe Mon Sep 17 00:00:00 2001 From: John Date: Wed, 17 Dec 2014 15:51:38 +0000 Subject: [PATCH] Trap the plus sign <+> and <+> on the keyboard (not the keypad) --- PROMS/Volian.Controls.Library/StepRTB.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 306286d6..909fb90f 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -1818,13 +1818,15 @@ namespace Volian.Controls.Library IsControlChar = true; if (e.Shift) { + //Console.WriteLine("keycode = {0} key value = {1}",e.KeyCode,e.KeyValue); switch (e.KeyCode) { // The following keys are supported in underlying RTB (with ctrl+shift key), // but PROMS should not do anything for that functionality: - case Keys.Add: + case Keys.Add: // the plus on the key pad case Keys.Subtract: case Keys.L: + case Keys.Oemplus: // the plus on the keyboard (not the key pad) e.Handled = true; break; } @@ -1891,6 +1893,7 @@ namespace Volian.Controls.Library case Keys.D2: // Double space text case Keys.D5: // 1.5 space text case Keys.H: // Find (proms uses Ctrl+F for find) + case Keys.Oemplus: // plus on the keyboard (not the key pad) e.Handled = true; break; }