Commit 2fc710d1 authored by Christoph Roick's avatar Christoph Roick
Browse files

Restrict quick annotation shortcut context

Only handle shortcuts to quick annotation actions
if the Okular part is focussed. Otherwise, Okular as
embedded plugin might involuntarily steal numeric input
from the main application (like in the Kate preview plugin).
parent 7ccdd513
Pipeline #88542 passed with stage
in 9 minutes and 53 seconds
......@@ -383,8 +383,10 @@ void AnnotationActionHandlerPrivate::populateQuickAnnotations()
aQuickToolsBar->insertAction(actionBarInsertPosition++, annFav);
if (shortcutNumber != numberKeys.end())
if (shortcutNumber != numberKeys.end()) {
QObject::connect(annFav, &KToggleAction::toggled, q, [this, favToolId](bool checked) {
if (checked) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment