1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-04 23:37:41 +02:00
Jesse Duffield 845c80721f Decouple escaping from quitting
When a user is not entering text into a prompt, the 'q' key should immediately
quit the application. On the other hand, the 'esc' key should cancel/close/go-back
to the previous context.

If we're at the surface level (nothing to cancel/close) and the user hits the
escape key, the default behaviour is to close the app, however we now have a
`quitOnTopLevelReturn` config key to override this.

I actually think from the beginning we should have made this config option
default to false rather than true which is the default this PR gives it,
but I don't want to anger too many people familiar with the existing behaviour.
2020-07-18 20:00:48 +10:00
..
2020-03-28 11:59:45 +11:00
2020-03-29 18:26:24 +11:00
2020-03-28 11:59:45 +11:00
2020-03-09 12:23:13 +11:00
2020-03-28 11:59:45 +11:00
2020-03-29 18:26:24 +11:00
2020-03-28 11:59:45 +11:00
2020-03-29 18:26:24 +11:00
2020-03-29 11:37:29 +11:00
2020-04-20 18:31:13 +10:00
2020-07-18 20:00:48 +10:00
2020-07-18 20:00:48 +10:00
2020-03-04 00:12:23 +11:00
2020-03-25 21:26:15 +11:00
2020-07-18 20:00:48 +10:00
2020-03-29 18:26:24 +11:00
2020-03-29 18:26:24 +11:00
2020-03-28 11:59:45 +11:00
2020-03-09 12:23:13 +11:00
2020-04-17 09:27:23 +10:00
2020-04-20 18:57:08 +10:00
2020-03-29 18:26:24 +11:00
2020-03-28 11:59:45 +11:00