diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2020-07-11 18:52:41 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-13 14:27:23 +0200 |
commit | 332f349e07d70e9c1cf32ca0021802ef08646908 (patch) | |
tree | 06fb7fcd722b2c8cccd56c1b6f1fb929c388a1b8 /Libraries/LibGUI/TreeView.cpp | |
parent | 366d7e6d0560607fd86256a282678087f2ee7d8f (diff) | |
download | serenity-332f349e07d70e9c1cf32ca0021802ef08646908.zip |
LibGUI: Fix keybind conflicts in TreeView
Changes the shortcut to expand and collapse subtrees from alt to
ctrl+right/left arrows in TreeView. The current shortcuts conflict
with applications that already have navigation controls bound to alt
like file manager.
Diffstat (limited to 'Libraries/LibGUI/TreeView.cpp')
-rw-r--r-- | Libraries/LibGUI/TreeView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/TreeView.cpp b/Libraries/LibGUI/TreeView.cpp index 76b5022f04..8411332c73 100644 --- a/Libraries/LibGUI/TreeView.cpp +++ b/Libraries/LibGUI/TreeView.cpp @@ -469,7 +469,7 @@ void TreeView::keydown_event(KeyEvent& event) if (event.key() == KeyCode::Key_Left) { if (cursor_index.is_valid() && model()->row_count(cursor_index)) { - if (event.alt()) { + if (event.ctrl()) { collapse_tree(cursor_index); return; } @@ -489,7 +489,7 @@ void TreeView::keydown_event(KeyEvent& event) if (event.key() == KeyCode::Key_Right) { if (cursor_index.is_valid() && model()->row_count(cursor_index)) { - if (event.alt()) { + if (event.ctrl()) { expand_tree(cursor_index); return; } |