Merge branch 'helioguardabaxo-master'

reviewable/pr3359/r1
Lauri Ojansivu 5 years ago
commit 37b0543ed6
  1. 12
      client/lib/keyboard.js
  2. 1
      i18n/en.i18n.json

@ -45,6 +45,14 @@ Mousetrap.bind('f', () => {
}
});
Mousetrap.bind('/', () => {
if (Sidebar.isOpen() && Sidebar.getView() === 'search') {
Sidebar.toggle();
} else {
Sidebar.setView('search');
}
});
Mousetrap.bind(['down', 'up'], (evt, key) => {
if (!Session.get('currentCard')) {
return;
@ -118,6 +126,10 @@ Template.keyboardShortcuts.helpers({
keys: ['f'],
action: 'shortcut-toggle-filterbar',
},
{
keys: ['/'],
action: 'shortcut-toggle-searchbar',
},
{
keys: ['x'],
action: 'shortcut-clear-filters',

@ -488,6 +488,7 @@
"shortcut-filter-my-cards": "Filter my cards",
"shortcut-show-shortcuts": "Bring up this shortcuts list",
"shortcut-toggle-filterbar": "Toggle Filter Sidebar",
"shortcut-toggle-searchbar": "Toggle Search Sidebar",
"shortcut-toggle-sidebar": "Toggle Board Sidebar",
"show-cards-minimum-count": "Show cards count if list contains more than",
"sidebar-open": "Open Sidebar",

Loading…
Cancel
Save