From 30e84f8f2c880025eb7c981fa8fe96050d1ed583 Mon Sep 17 00:00:00 2001 From: IJ Date: Sun, 2 Dec 2018 10:29:04 +0000 Subject: [PATCH] Amend Add Access Keys in Navigation Tooltips - based on suggested code by @eldy - Added `classfortooltip` for better display --- htdocs/core/class/html.form.class.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 082e0be1a34..cc91e2072c4 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6683,8 +6683,18 @@ class Form // accesskey is for Windows or Linux: ALT + key for chrome, ALT + SHIFT + KEY for firefox // accesskey is for Mac: CTRL + key for all browsers - $previous_ref = $object->ref_previous?'':''; - $next_ref = $object->ref_next?'':''; + $stringforfirstkey = 'CTL +'; + if ($conf->browser->name == 'chrome') + { + $stringforfirstkey = 'ALT +'; + } + if ($conf->browser->name == 'firefox') + { + $stringforfirstkey = 'ALT + SHIFT +'; + } + + $previous_ref = $object->ref_previous?'':''; + $next_ref = $object->ref_next?'':''; } //print "xx".$previous_ref."x".$next_ref;