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 中的包资源管理器中展开树节点?
基础教程推荐
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
