summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/input.cpp')
-rw-r--r--plugins/Scriver/src/input.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/Scriver/src/input.cpp b/plugins/Scriver/src/input.cpp
index 2302c01c7d..5e819d1322 100644
--- a/plugins/Scriver/src/input.cpp
+++ b/plugins/Scriver/src/input.cpp
@@ -267,21 +267,21 @@ void RegisterKeyBindings()
desc.szDescription.a = LPGEN("Navigate: Previous tab");
desc.lParam = KB_PREV_TAB;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, VK_TAB);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_PRIOR);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, VK_LEFT);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Nav/Next Tab";
desc.szDescription.a = LPGEN("Navigate: Next tab");
desc.lParam = KB_NEXT_TAB;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_TAB);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_NEXT);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, VK_RIGHT);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = strName;
desc.szDescription.a = strDesc;
@@ -290,68 +290,68 @@ void RegisterKeyBindings()
mir_snprintf(strDesc, Translate("Navigate: Tab %d"), i + 1);
desc.lParam = KB_TAB1 + i;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, '1' + i);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
}
desc.pszName = "Scriver/Wnd/Toggle Statusbar";
desc.szDescription.a = LPGEN("Window: Toggle status bar");
desc.lParam = KB_SWITCHSTATUSBAR;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, 'S');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Toggle Titlebar";
desc.szDescription.a = LPGEN("Window: Toggle title bar");
desc.lParam = KB_SWITCHTITLEBAR;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, 'M');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Toggle Toolbar";
desc.szDescription.a = LPGEN("Window: Toggle toolbar");
desc.lParam = KB_SWITCHTOOLBAR;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, 'T');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Toggle Infobar";
desc.szDescription.a = LPGEN("Window: Toggle info bar");
desc.lParam = KB_SWITCHINFOBAR;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, 'N');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Clear Log";
desc.szDescription.a = LPGEN("Window: Clear log");
desc.lParam = KB_CLEAR_LOG;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, 'L');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Minimize";
desc.szDescription.a = LPGEN("Window: Minimize");
desc.lParam = KB_MINIMIZE;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_SHIFT, VK_ESCAPE);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Wnd/Close Tab";
desc.szDescription.a = LPGEN("Window: Close tab");
desc.lParam = KB_CLOSE;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, VK_F4);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, 'W');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Action/Quote";
desc.szDescription.a = LPGEN("Action: Quote");
desc.lParam = KB_QUOTE;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL, 'Q');
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Action/Send All";
desc.szDescription.a = LPGEN("Action: Send to all");
desc.lParam = KB_SEND_ALL;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, VK_RETURN);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
desc.pszName = "Scriver/Action/PasteSend";
desc.szDescription.a = LPGEN("Action: Paste and send");
desc.lParam = KB_PASTESEND;
desc.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL | HOTKEYF_SHIFT, VK_INSERT);
- Hotkey_Register(&desc);
+ g_plugin.addHotkey(&desc);
}