From 07493d0546e04d6abc0c398b7e360139a58891a8 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 12 Oct 2008 20:16:38 +0200 Subject: removed 'ALT+' from all titles of elements with accesskeys (FS#1172) darcs-hash:20081012181638-f7d6d-d4614321134f78fc176688d8aaf9d9acccf1952e.gz --- inc/form.php | 2 +- inc/html.php | 4 ++-- inc/media.php | 4 ++-- inc/template.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'inc') diff --git a/inc/form.php b/inc/form.php index cd72f7b43..767788ea4 100644 --- a/inc/form.php +++ b/inc/form.php @@ -350,7 +350,7 @@ function form_makeButton($type, $act, $value='', $attrs=array()) { $elem = array('_elem'=>'button', 'type'=>$type, '_action'=>$act, 'value'=>$value, 'class'=>'button'); if (!empty($attrs['accesskey']) && empty($attrs['title'])) { - $attrs['title'] = $value . ' [ALT+'.strtoupper($attrs['accesskey']).']'; + $attrs['title'] = $value . ' ['.strtoupper($attrs['accesskey']).']'; } return array_merge($elem, $attrs); } diff --git a/inc/html.php b/inc/html.php index b9c6138b2..570f12b17 100644 --- a/inc/html.php +++ b/inc/html.php @@ -183,8 +183,8 @@ function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){ $ret .= ''.NL; echo ''.NL; echo ''.NL; + '" title="'.$lang['btn_save'].' [S]" accesskey="s" class="button" />'.NL; echo ''.NL; + '" title="'.$lang['btn_cancel'].' [C]" accesskey="c" class="button" />'.NL; echo ''.NL; echo ''.NL; } diff --git a/inc/template.php b/inc/template.php index 1385c7547..7fea8c7ac 100644 --- a/inc/template.php +++ b/inc/template.php @@ -790,7 +790,7 @@ function tpl_searchform($ajax=true,$autocomplete=true){ print ''; + print 'id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" />'; print ''; if($ajax) print '
'; print ''; -- cgit v1.2.3