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;