Order of delete shortcuts in shortcut dialog was messed up.

This commit is contained in:
Marcel Schramm 2020-11-16 18:04:03 +01:00
parent 02eafc8e19
commit 5fe1add9b9
No known key found for this signature in database
GPG Key ID: 05971054C70EEDC7
3 changed files with 7 additions and 2 deletions

View File

@ -87,6 +87,7 @@ var (
MoveCursorEndOfText = addShortcut("move_cursor_to_end_of_text", "Move cursor to end of text",
multilineTextInput, tcell.NewEventKey(tcell.KeyEnd, 0, tcell.ModCtrl))
DeleteLeft = addDeleteLeftShortcut()
DeleteRight = addShortcut("delete_right", "Delete right",
multilineTextInput, tcell.NewEventKey(tcell.KeyDelete, 0, tcell.ModNone))
DeleteWordLeft = addShortcut("delete_word_left", "Delete word left",

View File

@ -4,4 +4,6 @@ package shortcuts
import tcell "github.com/gdamore/tcell/v2"
var DeleteLeft = addShortcut("delete_left", "Delete left", multilineTextInput, tcell.NewEventKey(tcell.KeyBackspace2, rune(tcell.KeyBackspace2), tcell.ModNone))
func addDeleteLeftShortcut() *Shortcut {
return addShortcut("delete_left", "Delete left", multilineTextInput, tcell.NewEventKey(tcell.KeyBackspace2, rune(tcell.KeyBackspace2), tcell.ModNone))
}

View File

@ -4,4 +4,6 @@ package shortcuts
import tcell "github.com/gdamore/tcell/v2"
var DeleteLeft = addShortcut("delete_left", "Delete left", multilineTextInput, tcell.NewEventKey(tcell.KeyBackspace, rune(tcell.KeyBackspace), tcell.ModNone))
func addDeleteLeftShortcut() *Shortcut {
return addShortcut("delete_left", "Delete left", multilineTextInput, tcell.NewEventKey(tcell.KeyBackspace, rune(tcell.KeyBackspace), tcell.ModNone))
}