summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-06 09:23:47 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit43a9dc48e01dcc773997df09411d20ed79c1b6bb (patch)
treec78906f64af424be9dfce90e60c01f744ec8d61d /pkg/config
parent440eb387d77d27ce5591e5fd8b4e0541d3f8e879 (diff)
default to not quitting when hitting esc at the top level.
I've been using this config option for years now so I don't think much of it, but newcomers are going to find it annoying that hitting escape gets you out of filtering/cherry-picking/patch-building mode, but also quits the app. So if you want to exit all the modes you're in, you need to take care not to press the key one too many times or the app will close. We'll see if anybody gets mad about this change, but I think it's reasonable. The only downside is that you won't be able to always quit by spamming the escape key. If you're in a prompt panel, you'll need to hit escape to exit that, and then 'q' at the top level. Or CTRL+C of course.
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index b9221c01b..377ed05c0 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -325,7 +325,7 @@ func GetDefaultConfig() *UserConfig {
Reporting: "undetermined",
SplashUpdatesIndex: 0,
ConfirmOnQuit: false,
- QuitOnTopLevelReturn: true,
+ QuitOnTopLevelReturn: false,
Keybinding: KeybindingConfig{
Universal: KeybindingUniversalConfig{
Quit: "q",