mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
debug logs added to for shortcut events
This commit is contained in:
@@ -322,7 +322,7 @@ void Application::startApplication() {
|
|||||||
void Application::closeApplication() {
|
void Application::closeApplication() {
|
||||||
if (App::launchState() != App::QuitProcessed);
|
if (App::launchState() != App::QuitProcessed);
|
||||||
App::setLaunchState(App::QuitProcessed);
|
App::setLaunchState(App::QuitProcessed);
|
||||||
App::quit();
|
|
||||||
delete AppObject;
|
delete AppObject;
|
||||||
AppObject = 0;
|
AppObject = 0;
|
||||||
|
|
||||||
|
@@ -1037,9 +1037,11 @@ bool Window::eventFilter(QObject *obj, QEvent *e) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case QEvent::ShortcutOverride: // handle shortcuts ourselves
|
case QEvent::ShortcutOverride: // handle shortcuts ourselves
|
||||||
|
DEBUG_LOG(("Shortcut override declined: %1").arg(static_cast<QKeyEvent*>(e)->key()));
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case QEvent::Shortcut:
|
case QEvent::Shortcut:
|
||||||
|
DEBUG_LOG(("Shortcut event catched: %1").arg(static_cast<QShortcutEvent*>(e)->key().toString()));
|
||||||
if (Shortcuts::launch(static_cast<QShortcutEvent*>(e)->shortcutId())) {
|
if (Shortcuts::launch(static_cast<QShortcutEvent*>(e)->shortcutId())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user