ctrl-d to deselect
- SHA
b181446579f673ad2aebf6641b92596ebf432fd7- Parents
-
bbb26d1 - Tree
adfe09d
b181446
b181446579f673ad2aebf6641b92596ebf432fd7bbb26d1
adfe09d| Status | File | + | - |
|---|---|---|---|
| M |
app/main.f90
|
7 | 1 |
app/main.f90modified@@ -203,7 +203,7 @@ program fortress | ||
| 203 | 203 | |
| 204 | 204 | ! Handle input |
| 205 | 205 | select case(ichar(key)) |
| 206 | - case(27) ! ESC - could be arrow keys, Shift+arrow, or standalone ESC | |
| 206 | + case(27) ! ESC - could be arrow keys, Shift+arrow, or standalone ESC to clear selections | |
| 207 | 207 | ! Read the arrow key sequence first to determine what was pressed |
| 208 | 208 | call read_arrow_key_with_shift(key, is_shift_pressed) |
| 209 | 209 | |
@@ -468,6 +468,12 @@ program fortress | ||
| 468 | 468 | call clear_all_selections(is_selected, selection_count, in_selection_mode) |
| 469 | 469 | call detect_git_repo(current_dir, in_git_repo, repo_name, branch_name) |
| 470 | 470 | end if |
| 471 | + case(4) ! Ctrl-D - clear multi-select (deselect all) | |
| 472 | + if (selection_count > 0) then | |
| 473 | + call clear_all_selections(is_selected, selection_count, in_selection_mode) | |
| 474 | + selection_anchor = -1 | |
| 475 | + has_disjoint_selection = .false. | |
| 476 | + end if | |
| 471 | 477 | case(32) ! Space - toggle selection on current item |
| 472 | 478 | if (trim(current_files(selected)) /= "." .and. trim(current_files(selected)) /= "..") then |
| 473 | 479 | if (is_selected(selected)) then |