diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-13 10:01:35 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 12:28:42 +0200 |
commit | cf27fd827b0b9cd7d3701d3c9b23b6dd5345ca58 (patch) | |
tree | 54bd04cdac7745d6f5722aaf4eb363a9b09365c1 /pkg/gui/types | |
parent | a7c97400c69f641683f38fb7cf11eb8b18e11882 (diff) |
Clear keybinding functions in resetHelpersAndControllers
When switching to a repo that was open before, the context tree is reused, so
before adding keybinding functions to those contexts again, we need to clear the
old ones.
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/context.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index 691d5694d..003035fc2 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -74,6 +74,7 @@ type IBaseContext interface { AddKeybindingsFn(KeybindingsFn) AddMouseKeybindingsFn(MouseKeybindingsFn) + ClearAllBindingsFn() // This is a bit of a hack at the moment: we currently only set an onclick function so that // our list controller can come along and wrap it in a list-specific click handler. |