mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-04 10:34:55 +02:00
Change key of clipboard copy
This commit is contained in:
parent
f6f82091bc
commit
e87fc4a229
@ -3,7 +3,6 @@ package gui
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jesseduffield/gocui"
|
||||
"github.com/jesseduffield/lazygit/pkg/commands/types/enums"
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
)
|
||||
@ -32,7 +31,7 @@ func (gui *Gui) handleCreatePatchOptionsMenu() error {
|
||||
{
|
||||
Label: "Copy patch to clipboard",
|
||||
OnPress: func() error { return gui.copyPatchToClipbaord() },
|
||||
Key: gocui.KeyCtrlO,
|
||||
Key: 'y',
|
||||
},
|
||||
}
|
||||
|
||||
@ -207,7 +206,7 @@ func (gui *Gui) copyPatchToClipbaord() error {
|
||||
return gui.c.Error(err)
|
||||
}
|
||||
|
||||
gui.c.Toast((gui.c.Tr.Actions.CopyPatchToClipboard))
|
||||
gui.c.Toast(gui.c.Tr.Actions.CopyPatchToClipboard)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user