简体   繁体   English

okular:禁用注释的键盘快捷键

[英]okular: disable keyboard shortcuts for annotations

So I want to bind keys 1 and 2 in Okular to display respectively one single page or two facing pages.所以我想在 Okular 中绑定键12以分别显示一页或两页。 It seems however that those keys are bound to some annotation tools.然而,这些键似乎绑定到一些注释工具。

In older versions of Okular I could bind those shortcuts;在旧版本的 Okular 中,我可以绑定这些快捷方式; maybe there were no annotations, I don't know, I don't use annotations.也许没有注释,我不知道,我不使用注释。 Now it creates a shortcut conflict and I cannot de-assign them from annotations using the “Keyboard shortcuts” menu entry.现在它会产生快捷方式冲突,我无法使用“键盘快捷方式”菜单项从注释中取消分配它们。

(Edit to add: also, when defining the shortcuts 1 and 2 in the relevant dialog box, nothing warns me that these are already assigned, which likely classifies as a bug). (编辑添加:另外,在相关对话框中定义快捷方式12时,没有任何警告我这些已经分配,这可能归类为错误)。

Is there another way to kill the annotations shortcuts so that I can assign keys?还有另一种方法可以杀死注释快捷方式以便我可以分配键吗?

(Okular version 1.11.3. I don't use the remainder of KDE, but I quite like this document viewer). (Okular 版本 1.11.3。我不使用 KDE 的其余部分,但我非常喜欢这个文档查看器)。

OK, I solved this;好的,我解决了这个问题; leaving it here in the unlikely case anybody has the same problem.在不太可能的情况下将其留在这里,任何人都有同样的问题。

It turns out that removing all the annotation tools (Configuration > Configure Okular > Annotations) also removes the “silent” keyboard shortcuts.事实证明,删除所有注释工具(配置 > 配置 Okular > 注释)也会删除“静音”键盘快捷键。

Another possibility would have been to edit ~/.config/okularpartrc , but that file is a bit unwieldy (the annotations configuration is one huge line of XML) and I am not too confident that any changes made there would have been persistent.另一种可能性是编辑~/.config/okularpartrc ,但该文件有点笨拙(注释配置是一大行 XML),我不太相信在那里所做的任何更改都会持久。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM