From 36c9104cbfb1b61225101e4eee04ca39ed4d28ed Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 29 Mar 2017 21:05:07 +0300 Subject: [PATCH] Add settings keyboard shortcuts --- .../partials/keyboard_shortcuts.blade.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/resources/views/partials/keyboard_shortcuts.blade.php b/resources/views/partials/keyboard_shortcuts.blade.php index 8fcd6ff48dee..de2d6b7862c4 100644 --- a/resources/views/partials/keyboard_shortcuts.blade.php +++ b/resources/views/partials/keyboard_shortcuts.blade.php @@ -150,5 +150,31 @@ }); @endforeach + @foreach([ + 'g c d' => 'company_details', + 'g u d' => 'user_details', + 'g l' => 'localization', + 'g o p' => 'online_payments', + 'g t x' => 'tax_rates', + 'g p' => 'products', + 'g n' => 'notifications', + 'g i e' => 'import_export', + 'g a m' => 'account_management', + 'g i s' => 'invoice_settings', + 'g i d' => 'invoice_design', + 'g c p' => 'client_portal', + 'g e' => 'email_settings', + 'g t r' => 'templates_and_reminders', + 'g c c' => 'bank_accounts', + 'g d v' => 'data_visualizations', + 'g a t' => 'api_tokens', + 'g u m' => 'user_management', + ] as $key => $val) + Mousetrap.bind('{{ $key }}', function(e) { + location.href = "{!! url('/settings/' . $val) !!}"; + }); + @endforeach + + });