Is it possible to use arrow keys alone to expand tree node in package explorer in Eclipse on Linux?(是否可以单独使用箭头键在 Linux 上的 Eclipse 中的包资源管理器中展开树节点?)
问题描述
在使用 Eclipse 时,我经常使用键盘箭头浏览包资源管理器树.
When using Eclipse I browse through the package explorer tree using the keyboard arrows a lot.
在 Windows 中,我可以通过按 → 键来展开折叠的节点.在 Linux 中,我需要按 Shift + →.有没有办法重新配置它以便不需要 Shift?
In Windows I can expand a collapsed node by pressing the → key. In Linux I need to press Shift + →. Is there a way to reconfigure this so that Shift is not required?
推荐答案
我的 GTK3 版本表现得更自然.将以下内容添加到 ~/.config/gtk-3.0/gtk.css:
My version for GTK3 that behaves in more natural way. Add the following to ~/.config/gtk-3.0/gtk.css:
@binding-set MyTreeViewBinding
{
bind "Left" { "select-cursor-parent" ()
"expand-collapse-cursor-row" (0,0,0) };
bind "Right" { "expand-collapse-cursor-row" (0,1,0) };
}
GtkTreeView
{
gtk-key-bindings: MyTreeViewBinding;
}
这篇关于是否可以单独使用箭头键在 Linux 上的 Eclipse 中的包资源管理器中展开树节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以单独使用箭头键在 Linux 上的 Eclipse 中的包资源管理器中展开树节点?


- Jersey REST 客户端:发布多部分数据 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01