aboutsummaryrefslogtreecommitdiff
path: root/src/SearchBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r--src/SearchBar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp
index 2371762..0c097a3 100644
--- a/src/SearchBar.cpp
+++ b/src/SearchBar.cpp
@@ -133,7 +133,10 @@ namespace QuickMedia {
const bool pressing_ctrl = (event.type == mgl::Event::KeyPressed && event.key.control);
if(pressing_ctrl && (event.type != mgl::Event::TextEntered || event.text.codepoint != 13)) // Enter
- return;
+ return;
+
+ if(event.type == mgl::Event::TextEntered && window.is_key_pressed(mgl::Keyboard::LControl) && !window.is_key_pressed(mgl::Keyboard::LAlt))
+ return;
if(event.type == mgl::Event::TextEntered && event.text.codepoint != 8 && event.text.codepoint != 127) { // 8 = backspace, 127 = del
onTextEntered(event.text);