Feature request #4133: accesskey for TMENU
authorWolfgang Klinger <wolfgang@stufenlos.net>
Mon, 11 Sep 2006 13:18:27 +0000 (13:18 +0000)
committerWolfgang Klinger <wolfgang@stufenlos.net>
Mon, 11 Sep 2006 13:18:27 +0000 (13:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1732 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_menu.php

index 878905b..ca9095d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-11  Wolfgang Klinger <wk@plan2.net>
+
+       * Feature request #4133: accesskey for TMENU
+
 2006-09-11 Ingmar Schlecht  <ingmar@typo3.org>
 
        * New feature: Bidirectional MM relations. You can now edit mm-relations from both sides of the relation in the Backend TCE-Forms. Thanks to Sebastian (for writing the patch together with me) and RenĂ© (for the first version of this feature)
index 55e18f3..e8c8f1d 100755 (executable)
@@ -1578,12 +1578,19 @@ class tslib_tmenu extends tslib_menu {
                                $this->I['pid'] = $this->menuArr[$key]['pid'];
                                $this->I['spacer'] = $this->menuArr[$key]['isSpacer'];
 
+                                       // Set access key
+                               if ($this->mconf['accessKey'])  {
+                                       $this->I['accessKey'] = $this->accessKey($this->I['title']);
+                               } else {
+                                       $this->I['accessKey'] = Array();
+                               }
+
                                        // Make link tag
                                $this->I['val']['ATagParams'] = $this->WMcObj->getATagParams($this->I['val'], 0);
                                $this->I['linkHREF'] =  $this->link($key,$this->I['val']['altTarget'],$this->mconf['forceTypeValue']);
 
                                        // Title attribute of links:
-                               $titleAttrValue = $this->WMcObj->stdWrap($this->I['val']['ATagTitle'],$this->I['val']['ATagTitle.']);
+                               $titleAttrValue = $this->WMcObj->stdWrap($this->I['val']['ATagTitle'],$this->I['val']['ATagTitle.']).$this->I['accessKey']['alt'];
                                if (strlen($titleAttrValue))    {
                                        $this->I['linkHREF']['title'] = $titleAttrValue;
                                }
@@ -2202,7 +2209,7 @@ class tslib_gmenu extends tslib_menu {
                                        if ($this->mconf['accessKey'])  {
                                                $this->I['accessKey'] = $this->accessKey($this->I['title']);
                                        } else {
-                                               $this->I['accessKey']=Array();
+                                               $this->I['accessKey'] = Array();
                                        }
 
                                                // Get link.