MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / RegisterKeyboard

Method RegisterKeyboard

Src/Hook.cpp:44–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44int CHook::RegisterKeyboard()
45{
46 OnRegisterKeyboard();
47
48 if(m_pParameterPlugin->GetDesktopShortcutsScript()
49 && !m_pParameterPlugin->GetRestoreDesktopShortcutsScript().isEmpty()
50 && !m_pParameterPlugin->GetDisableDesktopShortcutsScript().isEmpty()) {
51#if defined(Q_OS_WIN32)
52 QDesktopServices::openUrl(m_pParameterPlugin->GetDisableDesktopShortcutsScript());
53#else
54 RunCommand(m_pParameterPlugin->GetDisableDesktopShortcutsScript());
55#endif
56 m_bScript = true;
57 } else {
58 OnDisableDesktopShortcuts();
59 m_bScript = false;
60 }
61 return 0;
62}
63
64int CHook::UnRegisterKeyboard()
65{

Callers 2

InitialMethod · 0.45

Tested by

no test coverage detected