diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-04 15:50:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-04 15:50:12 +0300 |
commit | 7c1c38df3d1ff4a316ffabb769f718f8af38a9ad (patch) | |
tree | ce2d4de443eb31b8c595e371b88b1005f1e281d8 /src/mir_app | |
parent | 9627e3f85f31cee6cdd85691941405ecfe8cb6c7 (diff) |
Ctrl+W added as a hotkey
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 8911b21e59..8826eff021 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -913,44 +913,45 @@ bool CSrmmBaseDialog::ProcessHotkeys(int key, bool isShift, bool isCtrl, bool is if (isCtrl && !isAlt) { switch (key) { case VK_SPACE: // ctrl-space (paste clean text) - m_btnBold.Push(false); onClick_BIU(&m_btnBold); - m_btnItalic.Push(false); onClick_BIU(&m_btnItalic); - m_btnUnderline.Push(false); onClick_BIU(&m_btnUnderline); + m_btnBold.Push(false); m_btnBold.Click(); + m_btnItalic.Push(false); m_btnItalic.Click(); + m_btnUnderline.Push(false); m_btnUnderline.Click(); - m_btnColor.Push(false); onClick_Color(&m_btnColor); - m_btnBkColor.Push(false); onClick_BkColor(&m_btnBkColor); + m_btnColor.Push(false); m_btnColor.Click(); + m_btnBkColor.Push(false); m_btnBkColor.Click(); return true; case 0x42: // ctrl-b (bold) m_btnBold.Push(!m_btnBold.IsPushed()); - onClick_BIU(&m_btnBold); + m_btnBold.Click(); return true; case 0x48: // ctrl-h (history) - onClick_History(&m_btnHistory); + m_btnHistory.Click(); return true; case 0x49: // ctrl-i (italics) m_btnItalic.Push(!m_btnItalic.IsPushed()); - onClick_BIU(&m_btnItalic); + m_btnItalic.Click(); return true; case 0x4b: // ctrl-k (paste clean text) m_btnColor.Push(!m_btnColor.IsPushed()); - onClick_Color(&m_btnColor); + m_btnColor.Click(); return true; case 0x4c: // ctrl-l (back color) m_btnBkColor.Push(!m_btnBkColor.IsPushed()); - onClick_BkColor(&m_btnBkColor); + m_btnBkColor.Click(); return true; case 0x55: // ctrl-u (underlining) m_btnUnderline.Push(!m_btnUnderline.IsPushed()); - onClick_BIU(&m_btnUnderline); + m_btnUnderline.Click(); return true; - case VK_F4: // ctrl-F4 (close tab) + case 0x57: // ctrl-w (close tab) + case VK_F4: // ctrl-F4 CloseTab(); return true; } |