Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: core: Do not exit editor mode when narrowing. #1206

Merged

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Apr 18, 2022

What does this PR do?

These unrelated aspects being tied together was not an issue previously,
when narrowing was always done outside of compose. However, with
integration of #1194 as 2195904 this is no longer the case, so this is
required to ensure that narrowing does not prematurely end editor mode,
since otherwise container widgets would steal keypresses.

This may be improved later through further refactoring of the keypress
handling.

Tested?

  • Manually
  • Existing tests (adapted, if necessary)
  • New tests added (for any new behavior)
  • Passed linting & tests (each commit)

Notes & Questions

Everything appears to work fine; as per commit description, we should fix this more cleanly with the keypress refactoring. See #zulip-terminal > Keypress refactoring

Interactions

This resolves an issue triggered by #1194, but which was present previously and only triggered by this situation.

These unrelated aspects being tied together was not an issue previously,
when narrowing was always done outside of compose. However, with
integration of zulip#1194 as 2195904 this is no longer the case, so this is
required to ensure that narrowing does not prematurely end editor mode,
since otherwise container widgets would steal keypresses.

This may be improved later through further refactoring of the keypress
handling.
@neiljp neiljp added the bug Something isn't working label Apr 18, 2022
@neiljp neiljp added this to the Next Release milestone Apr 18, 2022
@zulipbot zulipbot added the size: XS [Automatic label added by zulipbot] label Apr 18, 2022
@neiljp neiljp merged commit 281c957 into zulip:main Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback wanted size: XS [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants