Bug 389683

Summary: Document preview plugin hijacks keyboard shortcuts
Product: [Applications] kate Reporter: Wouter Van Hemel <wouter-kde>
Component: plugin-previewAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kossebau
Priority: NOR    
Version: 17.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***