summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpecksin <pexin@protonmail.com>2021-03-22 20:57:29 -0400
committerpecksin <pexin@protonmail.com>2021-03-22 20:57:29 -0400
commit1b39c96683f984b82432cb9f9417245680982b41 (patch)
tree99399584dba5213146191942bd2970f45c8ffc9b
parentf5e1b6eedcf0315fe1dd10e6deaf41f89b5cc589 (diff)
downloadminetest-1b39c96683f984b82432cb9f9417245680982b41.tar.gz
minetest-1b39c96683f984b82432cb9f9417245680982b41.tar.bz2
minetest-1b39c96683f984b82432cb9f9417245680982b41.zip
only use user-configured ctrl keys for weblink click
-rw-r--r--src/gui/guiChatConsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiChatConsole.cpp b/src/gui/guiChatConsole.cpp
index 527a28bdb..c27ade23d 100644
--- a/src/gui/guiChatConsole.cpp
+++ b/src/gui/guiChatConsole.cpp
@@ -422,7 +422,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
if(event.EventType == EET_KEY_INPUT_EVENT && !event.KeyInput.PressedDown)
{
// CTRL up
- if(isInCtrlKeys(event.KeyInput.Key) || !event.KeyInput.Control)
+ if(isInCtrlKeys(event.KeyInput.Key))
{
isctrldown = false;
}
@@ -430,7 +430,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
else if(event.EventType == EET_KEY_INPUT_EVENT && event.KeyInput.PressedDown)
{
// CTRL down
- if(isInCtrlKeys(event.KeyInput.Key) || event.KeyInput.Control)
+ if(isInCtrlKeys(event.KeyInput.Key))
{
isctrldown = true;
}