1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-06-20 01:19:23 +02:00

Cleanup: remove obsolete code

Should have been deleted in b955002d17.
This commit is contained in:
Stefan Haller
2026-04-01 14:29:23 +02:00
parent 95c237fdbb
commit e2e58e3811
-12
View File
@@ -484,18 +484,6 @@ func (gui *Gui) SetKeybinding(binding *types.Binding) error {
return gui.callKeybindingHandler(binding)
}
// TODO: move all mouse-ey stuff into new mouse approach
if gocui.IsMouseKey(binding.Key) {
handler = func() error {
// we ignore click events on views that aren't popup panels, when a popup panel is focused
if gui.helpers.Confirmation.IsPopupPanelFocused() && gui.currentViewName() != binding.ViewName {
return nil
}
return binding.Handler()
}
}
return gui.g.SetKeybinding(binding.ViewName, binding.Key, binding.Modifier, gui.wrappedHandler(handler))
}