| 42 | } |
| 43 | |
| 44 | int 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 | |
| 64 | int CHook::UnRegisterKeyboard() |
| 65 | { |
no test coverage detected