ui: Keyboard controls (#935)

* switch focus between views with Tab
* move focus within views with WASD/HJKL/Arrows
* move focus between graph edges by holding Shift
* move focus between code references by holding Shift
* removed graph panning with WASD and moved zooming to Alt + W/S
* removed graph navigation by pressing starting character in graph view lists
* changed local reference and custom trail shortcuts
* updated Keyboard Shortcuts window
* use common back and forward shortcuts and YZ & Shift + YZ
* fix macOS issue where widgets don't get proper focus after creating a new tab
* don't use shared_ptr in QtMainView

fixes #486, #327, #214, #210
This commit is contained in:
Eberhard Gräther
2020-03-02 14:48:03 +01:00
committed by GitHub
parent f4b37f9763
commit b0616778f3
98 changed files with 4204 additions and 863 deletions
+26 -7
View File
@@ -24,6 +24,14 @@
border: none;
}
#focus_indicator {
background: <color:code/navigation/background>;
}
#focus_indicator[focused=true] {
background: <color:window/focus>;
}
#code_navigation QLabel {
color: <color:code/file/title/text>;
font-size: <setting:font_size>px;
@@ -131,14 +139,14 @@
border: none;
}
#title_bar:hover {
background-color: <color:code/file/hover>;
}
#title_bar[hovering=false] {
border-top: 1px solid <color:code/navigation/line>;
}
#title_bar[focused=true] {
border-left: 4px solid <color:window/focus>;
}
#title_bar_single {
background-color: <color:code/file/background>;
padding-right: 5px;
@@ -203,21 +211,32 @@
padding-bottom: 2px;
}
#code_file #code_snippet #scope_name:hover {
background-color: <color:code/snippet/title/hover>;
#code_file #code_snippet #scope_name[focused=true] {
color: <color:code/snippet/syntax/text>;
}
#code_file #code_snippet #dots {
background-color: <color:code/snippet/line_number/background>;
padding-right: 16px;
border-right: 3px solid transparent;
margin-right: 5px;
padding-right: 8px;
text-align: right;
}
#code_file #code_snippet #dots[focused=true] {
border-right: 3px solid <color:window/focus>;
}
#code_file #code_snippet #scope_name {
padding-left: 4px;
text-align: left;
}
#code_file #code_snippet #scope_name[focused=true] {
padding-left: 4px;
text-align: left;
}
#line_number_area {
background-color: <color:code/snippet/line_number/background>;
border: none;