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

ui/boxes: Improve behaviour of non reply compose keys. #947

Closed
wants to merge 1 commit into from

Conversation

mkp6781
Copy link
Contributor

@mkp6781 mkp6781 commented Mar 13, 2021

Brings in consistent behaviour for use of non reply compose keys x/c.
Now, keypresses x and c always opens up private_box_view and
stream_box_view respectively.

Earlier, non reply compose hotkeys were configured for use only when focus
was on the MiddleColumnView. This commit expands its scope to enable use
of x/c even when focus is on users list, stream list, topics list, or
top buttons.

Tests added.

Fixes #871

Brings in consistent behaviour for use of non reply compose keys `x`/`c`.
Now, keypresses `x` and `c` always opens up `private_box_view` and
`stream_box_view` respectively.

Earlier, non reply compose hotkeys were configured for use only when focus
was on the `MiddleColumnView`. This commit expands its scope to enable use
of `x`/`c` even when focus is on users list, stream list, topics list, or
top buttons.

Tests added.

Fixes zulip#871
@zulipbot zulipbot added size: M [Automatic label added by zulipbot] area: hotkeys labels Mar 13, 2021
@zulipbot
Copy link
Member

Hello @zulip/server-hotkeys members, this pull request was labeled with the "area: hotkeys" label, so you may want to check it out!

@zulipbot
Copy link
Member

Heads up @mkp6781, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

@neiljp
Copy link
Collaborator

neiljp commented Mar 14, 2021

@mkp6781 Thanks for fixing this 🎉 I've merged this with updates to the commit text and to include an expected result in the parametrized test, rather than conditional code, which makes the tests clearer.

@neiljp neiljp closed this Mar 14, 2021
@neiljp neiljp added this to the Next Release milestone Mar 15, 2021
@neiljp neiljp added the bug Something isn't working label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: hotkeys bug Something isn't working has conflicts size: M [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve compose hotkey behavior (as compared to replies)
3 participants