diff options
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index 3cedc15..f087241 100644 --- a/src/interface/Textbox.cpp +++ b/src/interface/Textbox.cpp @@ -162,13 +162,14 @@ void Textbox::OnKeyPress(int key, bool shift, bool ctrl, bool alt) cursor++; changed = true; } + break; } if(changed && actionCallback) { actionCallback->TextChangedCallback(this); } } - catch(std::out_of_range e) + catch(std::out_of_range &e) { cursor = 0; text = ""; |
