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 中的包资源管理器中展开树节点?


基础教程推荐
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 降序排序:Java Map 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01