From 4286225f370c9c018e6d80349878072516ff3ef4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 2 Dec 2015 07:56:10 +0100 Subject: [PATCH] Added/Changed accesskeys for the new tab actions --- doc/Accesskeys.md | 4 ++++ mod/contacts.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/Accesskeys.md b/doc/Accesskeys.md index 5e25e55c45..c49e79c0ab 100644 --- a/doc/Accesskeys.md +++ b/doc/Accesskeys.md @@ -33,6 +33,10 @@ General /contacts (single contact view) ------------------------------- +* m: Status messages +* o: Profile +* t: Contacts +* d: Common friends * b: Toggle Blocked status * i: Toggle Ignored status * v: Toggle Archive status diff --git a/mod/contacts.php b/mod/contacts.php index 99b1c37c49..f1537d5086 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -829,7 +829,7 @@ function contacts_tab($a, $contact_id, $active_tab) { 'sel' => (($active_tab == 2)?'active':''), 'title' => t('Profile Details'), 'id' => 'status-tab', - 'accesskey' => 'r', + 'accesskey' => 'o', ) ); @@ -840,7 +840,7 @@ function contacts_tab($a, $contact_id, $active_tab) { 'sel' => (($active_tab == 3)?'active':''), 'title' => t('View all contacts'), 'id' => 'allfriends-tab', - 'accesskey' => ''); + 'accesskey' => 't'); $common = count_common_friends(local_user(),$contact_id); if ($common) @@ -849,7 +849,7 @@ function contacts_tab($a, $contact_id, $active_tab) { 'sel' => (($active_tab == 4)?'active':''), 'title' => t('View all common friends'), 'id' => 'common-loc-tab', - 'accesskey' => ''); + 'accesskey' => 'd'); $tabs[] = array('label' => t('Repair'), 'url' => $a->get_baseurl(true) . '/crepair/' . $contact_id,