diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9e70fa20944..dc0a5c7857b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6741,8 +6741,22 @@ 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 = $langs->trans("KeyboardShortcut"); + if ($conf->browser->name == 'chrome') + { + $stringforfirstkey .= ' ALT +'; + } + if ($conf->browser->name == 'firefox') + { + $stringforfirstkey .= ' ALT + SHIFT +'; + } + else + { + $stringforfirstkey .= ' CTL +'; + } + + $previous_ref = $object->ref_previous?'':''; + $next_ref = $object->ref_next?'':''; } //print "xx".$previous_ref."x".$next_ref;