[NEW] Switch channel with keyboard shortcuts#10366
[NEW] Switch channel with keyboard shortcuts#10366cmrd-senya wants to merge 2 commits intoRocketChat:developfrom
Conversation
graywolf336
left a comment
There was a problem hiding this comment.
Can you fix the linting issues? That way we can review this better?
32df854 to
5b492a4
Compare
|
Updated with lint issues fixed. |
|
Anything else blocking merging this to the rocket chat release? It's highly requested feature for us. |
|
Please change status to "review required", because requested changes were commited |
|
@graywolf336 any problem with this request? Would like to see in the next release |
I'm dismissing this review since the requested changes were made.
|
@ggazzo Can you check all that |
There was a problem hiding this comment.
@cmrd-senya we dont use __helper, usually we create a common function to use cross templates.
ps: use RocketChat.roomTypes.openRouteLink(nextRoom.t, nextRoom); instead of
const name = RocketChat.roomTypes.getRouteLink(nextRoom.t, nextRoom);
FlowRouter.go(name);any problem ask, @tassoevan will help you :)
@ggazzo, where do you normally put the common functions? |
8b443de to
863021d
Compare
|
@ggazzo, @tassoevan, Please review. |
9a0e219 to
2cc2e09
Compare
|
Added a commit encapsulating the event attachments into a function to be called on template creation, leaving the module scope just for declarations. Also, I'm going to merge #12564 first, avoiding a conflict when writing a documentation for this new shortcuts. |
Tested, works for me.
So I'll have to add documentation to this PR after #12564 is merged? |
|
Don't worry, I am ready to change it. I'll just request your review when done. |
|
Senya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@RocketChat/core
Closes #4256
This adds support for switching channels using keyboard shortcuts. I'm expecting this not to be a final version and I expect the code to change according with the community feedback.
In the present version I supported two pairs of combinations:
alt+up/alt+downandctrl+tab/ctrl+shift+tab. The latter is conflicting with the browser hotkeys for switching tab, but I think it is useful for the users of the desktop version because it is consistent with how other desktop chat clients work. But if supportctrl+ (shift) +tabwe have to block them on the web version then. I don't know how is it possible to achieve.Anyway, I think I need some feedback since it is my first PR for Rocket.Chat and it is the first time I work with Meteor, so I'm not too confident about the code.