-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[NEW] Adds a Keyboard Shortcut option to the flextab #5902
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
550683c
Fixes #46 - Adds a Keyboard Shortcut option to the flextab
3b0ebda
Merge branch 'develop' into develop
cnash b404de2
Spaces to tabs per 'codacy-bot' linting feedback
f5b8e1d
Merge branch 'develop' of github.com:cnash/Rocket.Chat into develop
1c8dd6f
Cleaning up formatting of base.less due to linting failure.
6daebe3
Merge branch 'develop' into develop
karlprieb 50cb974
Addressing PR Feedback
5bb1d9b
Update defaultTabBars.js
cnash 3442293
Merge remote-tracking branch 'origin/develop' into cnash-develop
rodrigok 3162cf0
Fix tab title
rodrigok ef48083
Fix icon
rodrigok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,13 @@ RocketChat.TabBar.addButton({ | |
template: 'uploadedFilesList', | ||
order: 3 | ||
}); | ||
|
||
RocketChat.TabBar.addButton({ | ||
groups: ['channel', 'privategroup', 'directmessage'], | ||
id: 'keyboard-shortcut-list', | ||
i18nTitle: 'Keyboard_Shortcuts.Title', | ||
icon: 'icon-keyboard', | ||
template: 'keyboardShortcuts', | ||
order: 4 | ||
}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I keep adding newlines to this file, and @codacy-bot keeps complaining. |
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
packages/rocketchat-ui-flextab/client/tabs/keyboardShortcuts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template name="keyboardShortcuts"> | ||
<div class="content"> | ||
<div class="title"><h2>{{_ "Keyboard_Shortcuts_Title"}}</h2></div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Open_Channel_Slash_User_Search"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_1"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Edit_Previous_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_2"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Move_To_Beginning_Of_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_3"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Move_To_Beginning_Of_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_4"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Move_To_End_Of_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_5"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_Move_To_End_Of_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_6"}}}</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h2>{{_ "Keyboard_Shortcuts_New_Line_In_Message"}}</h2> | ||
<hr /> | ||
<div>{{{_ "Keyboard_Shortcuts_Keys_7"}}}</div> | ||
</div> | ||
|
||
</div> <!-- content --> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karlprieb Please fix this icon on new design