From 2dc351457dbefbd746ea833c49e1650e75d73e39 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Sun, 15 Oct 2023 19:19:53 +0200 Subject: [PATCH] NEW Accountancy - Add quick navigation with keyb. shortcut on ledger (#26221) --- .../accountancy/bookkeeping/listbyaccount.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/htdocs/accountancy/bookkeeping/listbyaccount.php b/htdocs/accountancy/bookkeeping/listbyaccount.php index c3214d2d25e..80788d43c51 100644 --- a/htdocs/accountancy/bookkeeping/listbyaccount.php +++ b/htdocs/accountancy/bookkeeping/listbyaccount.php @@ -746,6 +746,40 @@ if ($type == 'sub') { } else { $moreforfilter .= $formaccounting->select_account($search_accountancy_code_end, 'search_accountancy_code_end', $langs->trans('to'), array(), 1, 1, 'maxwidth200'); } +$stringforfirstkey = $langs->trans("KeyboardShortcut"); +if ($conf->browser->name == 'chrome') { + $stringforfirstkey .= ' ALT +'; +} elseif ($conf->browser->name == 'firefox') { + $stringforfirstkey .= ' ALT + SHIFT +'; +} else { + $stringforfirstkey .= ' CTL +'; +} +$moreforfilter .= '   '; +$moreforfilter .= '   '; +$moreforfilter .= << +SCRIPT; $moreforfilter .= ''; $moreforfilter .= '';