Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nadim Kobeissi
diskgem
Commits
7aa46ad7
Commit
7aa46ad7
authored
Oct 23, 2022
by
Nadim Kobeissi
💾
Browse files
Remove Backspace key for file deletion
Solution still needed for Mac, which doesn't have a Delete key on the keyboard.
parent
491bf86f
Changes
3
Hide whitespace changes
Inline
Side-by-side
cmd/diskgem/dguiabout.go
View file @
7aa46ad7
...
...
@@ -37,7 +37,7 @@ func uiAbout(ui *gocui.Gui, v *gocui.View) error {
- Arrow keys to navigate.
- Tab to switch between panes.
- Enter to upload/download files.
-
Backspac
e to delete files.
-
Delet
e to delete files.
`
fmt
.
Fprintln
(
view
,
strings
.
Join
([]
string
{
"
\n\n\n
"
,
aboutText
,
"
\n
DiskGem "
,
...
...
cmd/diskgem/dguikeys.go
View file @
7aa46ad7
...
...
@@ -42,8 +42,6 @@ func uiKeysBind(ui *gocui.Gui) error {
ui
.
SetKeybinding
(
""
,
gocui
.
KeyTab
,
gocui
.
ModNone
,
uiKeysTab
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyEnter
,
gocui
.
ModNone
,
uiKeysEnter
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyDelete
,
gocui
.
ModNone
,
uiKeysDelete
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyBackspace
,
gocui
.
ModNone
,
uiKeysDelete
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyBackspace2
,
gocui
.
ModNone
,
uiKeysDelete
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyArrowUp
,
gocui
.
ModNone
,
uiKeysArrowUp
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyArrowDown
,
gocui
.
ModNone
,
uiKeysArrowDown
)
ui
.
SetKeybinding
(
""
,
gocui
.
KeyArrowLeft
,
gocui
.
ModNone
,
uiKeysArrowLeft
)
...
...
docs/man/diskgem.1
View file @
7aa46ad7
...
...
@@ -28,7 +28,7 @@ Tab is used for switching between the left pane (local files) and the right pane
.IP \(bu
Enter is used for uploading or downloading files. Multiple parallel transfers are supported.
.IP \(bu
Backspac
e is used for deleting files.
Delet
e is used for deleting files.
.P
Some windows offering extended features are also accessible via certain key combinations:
.IP \(bu
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment