From e2e58e38119b623818003d179105c8ce6fef0b26 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 1 Apr 2026 14:29:23 +0200 Subject: [PATCH] Cleanup: remove obsolete code Should have been deleted in b955002d1722. --- pkg/gui/keybindings.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 6ca06a0fc..04780c5b9 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -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)) }