aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-20 11:23:35 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-20 11:23:35 +0200
commit697369f2b4cca6700e2b6ca10f309bd51bacccee (patch)
tree0a23f44702c2537052a04c35cfe40ef3682a7783 /src
parent2315cc3f338583e000e93952404904df8c93d53f (diff)
Allow using rctrl to move tabs without writing text into search bar
Diffstat (limited to 'src')
-rw-r--r--src/SearchBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp
index 0c097a3..1eff8a8 100644
--- a/src/SearchBar.cpp
+++ b/src/SearchBar.cpp
@@ -135,7 +135,7 @@ namespace QuickMedia {
if(pressing_ctrl && (event.type != mgl::Event::TextEntered || event.text.codepoint != 13)) // Enter
return;
- if(event.type == mgl::Event::TextEntered && window.is_key_pressed(mgl::Keyboard::LControl) && !window.is_key_pressed(mgl::Keyboard::LAlt))
+ if(event.type == mgl::Event::TextEntered && (window.is_key_pressed(mgl::Keyboard::LControl) || window.is_key_pressed(mgl::Keyboard::RControl)) && !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