mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix some key not working when renaming files
This commit is contained in:
parent
da6caf0c78
commit
fd848e26c1
1 changed files with 2 additions and 2 deletions
|
@ -549,14 +549,14 @@ public final class BrowserFileListComp extends SimpleComp {
|
|||
graphic.setAlignment(Pos.CENTER_LEFT);
|
||||
setGraphic(graphic);
|
||||
|
||||
InputHelper.onExactKeyCode(tableView, KeyCode.RIGHT, true, event -> {
|
||||
InputHelper.onExactKeyCode(tableView, KeyCode.RIGHT, false, event -> {
|
||||
var selected = fileList.getSelection();
|
||||
if (selected.size() == 1 && selected.getFirst() == getTableRow().getItem()) {
|
||||
((ButtonBase) quickAccess).fire();
|
||||
event.consume();
|
||||
}
|
||||
});
|
||||
InputHelper.onExactKeyCode(tableView, KeyCode.SPACE, true, event -> {
|
||||
InputHelper.onExactKeyCode(tableView, KeyCode.SPACE, false, event -> {
|
||||
var selected = fileList.getSelection();
|
||||
// Only show one menu across all selected entries
|
||||
if (selected.size() > 0 && selected.getLast() == getTableRow().getItem()) {
|
||||
|
|
Loading…
Reference in a new issue