From 4bb5c39e349f8619fc496888872ba05c8efb3035 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Dec 2019 13:18:06 -0800 Subject: [PATCH] Add context menu to rich edit to allow for keyboard support (#854) * Add context menu to rich edit to allow for keyboard support * Update src/Calculator/Controls/EquationTextBox.cpp Co-Authored-By: Pepe Rivera * Check for focus before triggering submit --- src/Calculator/App.xaml | 40 ++++++++++++----- src/Calculator/Controls/EquationTextBox.cpp | 43 +++++++++++++++++-- src/Calculator/Controls/EquationTextBox.h | 8 +++- src/Calculator/Resources/en-US/Resources.resw | 12 ++++++ .../EquationInputArea.xaml.cpp | 17 +++++++- 5 files changed, 104 insertions(+), 16 deletions(-) diff --git a/src/Calculator/App.xaml b/src/Calculator/App.xaml index 4db00b4..7d75721 100644 --- a/src/Calculator/App.xaml +++ b/src/Calculator/App.xaml @@ -1890,7 +1890,7 @@ - + @@ -2179,7 +2179,27 @@ AcceptsReturn="false" InputScope="Text" MaxLength="2048" - TextWrapping="NoWrap"/> + TextWrapping="NoWrap"> + + + + + + + + + + + + + + + + + + + +