Bug 389683 - Document preview plugin hijacks keyboard shortcuts
Summary: Document preview plugin hijacks keyboard shortcuts
Status: RESOLVED DUPLICATE of bug 386265
Alias: None
Product: kate
Classification: Applications
Component: plugin-preview (show other bugs)
Version: 17.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-31 11:36 UTC by Wouter Van Hemel
Modified: 2018-01-31 11:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wouter Van Hemel 2018-01-31 11:36:55 UTC
Hello,

I'm trying to use the new document preview to check Markdown output. The plugin hijacks a lot of keybindings – such as ctrl-s – so Kate returns an error about duplicate keyboard bindings ("ambiguous shortcut detected") when the preview window is open.

I understand the problem is caused by some sort of Okular part running inside Kate adding its own keybindings, but I'm not sure if it is possible to disable the keybindings this kpart adds or even better to check the focus of the mouse and only apply the embedded part's bindings if it has active focus.

I like the functionality of this plugin though, it's very helpful when writing documentation alongside code.

(Kate 17.12.1 on Arch Linux)
Comment 1 Friedrich W. H. Kossebau 2018-01-31 11:49:31 UTC
Thanks for the report. Yes, this is some grave issue, where the nice simple hack to reuse the KParts infrastructure fails. No idea yet how to approach that, possibly needs some bigger work on the KParts & KXmlgui system :(

*** This bug has been marked as a duplicate of bug 386265 ***