Skip to content

Commit

Permalink
feat: add cmd+shift+K shortcut to open recents
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Oct 11, 2024
1 parent 4d440f9 commit 6967eca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/meteor/client/sidebarv2/header/SearchSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ const SearchSection = () => {
setShowRecent(false);
setFocus('filterText');
},
'Shift+$mod+K': (event) => {
event.preventDefault();
setShowRecent(true);
setFocus('filterText');
},
'Escape': (event) => {
event.preventDefault();
setShowRecent(false);
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/src/locales/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@
"Agent_Without_Extensions": "Agent Without Extensions",
"Agents": "Agents",
"Agree": "Agree",
"AI_Actions": "AI Actions",
"Alerts": "Alerts",
"Alias": "Alias",
"Alias_Format": "Alias Format",
Expand Down Expand Up @@ -6010,6 +6011,7 @@
"VoIP_TeamCollab_FreeSwitch_Password": "FreeSwitch Password",
"VoIP_TeamCollab_FreeSwitch_Timeout": "FreeSwitch Request Timeout",
"VoIP_TeamCollab_FreeSwitch_WebSocket_Path": "WebSocket Path",
"VoIP_TeamCollab_Beta_Alert": "This feature is currently in Beta, please report any issues to Rocket.Chat support",
"VoIP_Toggle": "Enable/Disable VoIP",
"Chat_opened_by_visitor": "Chat opened by the visitor",
"Wait_activation_warning": "Before you can login, your account must be manually activated by an administrator.",
Expand Down

0 comments on commit 6967eca

Please sign in to comment.