summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-26 14:23:47 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-26 18:00:46 +1100
commitfe87114074ae72e3c548f5b05fb50a919eda0f94 (patch)
tree4d5efbb1562a5ed5d922598335d71fdd80ee1412 /pkg/gui/types/context.go
parentad7703df65e09d23bb7e709ca9b22251673ac272 (diff)
don't hide transient views upon losing focus
Diffstat (limited to 'pkg/gui/types/context.go')
-rw-r--r--pkg/gui/types/context.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go
index bf4051538..1f7d753e7 100644
--- a/pkg/gui/types/context.go
+++ b/pkg/gui/types/context.go
@@ -33,8 +33,10 @@ type IBaseContext interface {
SetWindowName(string)
GetKey() ContextKey
IsFocusable() bool
- // if a context is transient, then when it loses focus, its corresponding view
- // returns control of the window to the default view for that window
+ // if a context is transient, then it only appears via some keybinding on another
+ // context. Until we add support for having multiple of the same context, no two
+ // of the same transient context can appear at once meaning one might be 'stolen'
+ // from another window.
IsTransient() bool
// returns the desired title for the view upon activation. If there is no desired title (returns empty string), then