diff options
author | pecksin <pexin@protonmail.com> | 2021-03-19 16:25:44 -0400 |
---|---|---|
committer | pecksin <pexin@protonmail.com> | 2021-03-19 16:25:44 -0400 |
commit | 038a317c213db41227beaa014100dc43b46e392c (patch) | |
tree | c18dca78b32e2344d933c5ef89f90f478949b658 /src/gui/guiChatConsole.h | |
parent | b6c8761e108eade0d1451580fbacf1e3d3f6a957 (diff) | |
download | minetest-038a317c213db41227beaa014100dc43b46e392c.tar.gz minetest-038a317c213db41227beaa014100dc43b46e392c.tar.bz2 minetest-038a317c213db41227beaa014100dc43b46e392c.zip |
user-configurable 'ctrl' keys for ctrl-leftclick in chat weblinks
Diffstat (limited to 'src/gui/guiChatConsole.h')
-rw-r--r-- | src/gui/guiChatConsole.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/guiChatConsole.h b/src/gui/guiChatConsole.h index 501bf50cb..058b78f28 100644 --- a/src/gui/guiChatConsole.h +++ b/src/gui/guiChatConsole.h @@ -82,6 +82,10 @@ private: void drawText(); void drawPrompt(); + // Parse conf and populate "ctrl" keys for clickable chat + int setupChatClickCtrlKeys(std::string inputline); + bool isInCtrlKeys(const irr::EKEY_CODE& kc); + private: ChatBackend* m_chat_backend; Client* m_client; @@ -127,4 +131,6 @@ private: // Enable clickable chat weblinks bool m_cache_clickable_chat_weblinks; + // Set of "control" keys for weblink mouseclicks + std::vector<irr::EKEY_CODE> m_cache_chat_weblink_ctrl_keys; }; |