From 5840b9f0254a3ff24c4b3c77546daea08f622c32 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 26 Mar 2009 04:04:12 +0000 Subject: [PATCH] Add accesskey to the From drop-down too git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13444 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/load_prefs.php | 1 + include/options/accessibility.php | 32 +++++++--------------------- templates/default/compose_header.tpl | 11 +++++----- 3 files changed, 15 insertions(+), 29 deletions(-) diff --git a/include/load_prefs.php b/include/load_prefs.php index 4b295763..e43a6c68 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -363,6 +363,7 @@ $accesskey_read_msg_move_to = getPref($data_dir, $username, 'accesskey_read_msg_ $accesskey_read_msg_move = getPref($data_dir, $username, 'accesskey_read_msg_move', 'm'); $accesskey_read_msg_copy = getPref($data_dir, $username, 'accesskey_read_msg_copy', 'c'); +$accesskey_compose_identity = getPref($data_dir, $username, 'accesskey_compose_identity', 'f'); $accesskey_compose_to = getPref($data_dir, $username, 'accesskey_compose_to', 't'); $accesskey_compose_cc = getPref($data_dir, $username, 'accesskey_compose_cc', 'c'); $accesskey_compose_bcc = getPref($data_dir, $username, 'accesskey_compose_bcc', 'o'); diff --git a/include/options/accessibility.php b/include/options/accessibility.php index b84f71ef..70bdf1ac 100644 --- a/include/options/accessibility.php +++ b/include/options/accessibility.php @@ -50,7 +50,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Reply"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -59,7 +58,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Reply All"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -68,7 +66,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Forward"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -77,7 +74,6 @@ function load_optpage_data_accessibility() { 'caption' => _("As Attachment"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -86,7 +82,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Delete"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -95,7 +90,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Bypass Trash"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -104,7 +98,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Move To"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -113,7 +106,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Move"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -122,7 +114,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Copy"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -131,12 +122,19 @@ function load_optpage_data_accessibility() { $optgrps[SMOPT_GRP_ACCESSKEYS_COMPOSE] = _("Access Keys For Compose Screen"); $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE] = array(); + $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array( + 'name' => 'accesskey_compose_identity', + 'caption' => _("From"), + 'type' => SMOPT_TYPE_STRLIST, + 'refresh' => SMOPT_REFRESH_NONE, + 'posvals' => $my_a_to_z, + ); + $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array( 'name' => 'accesskey_compose_to', 'caption' => _("To"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -145,7 +143,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Cc"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -154,7 +151,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Bcc"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -163,7 +159,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Subject"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -172,7 +167,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Priority"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -181,7 +175,6 @@ function load_optpage_data_accessibility() { 'caption' => _("On Read"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -190,7 +183,6 @@ function load_optpage_data_accessibility() { 'caption' => _("On Delivery"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -199,7 +191,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Signature"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -208,7 +199,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Addresses"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -217,7 +207,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Save Draft"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -226,7 +215,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Send"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -235,7 +223,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Body"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -244,7 +231,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Browse"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -253,7 +239,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Attach"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); @@ -262,7 +247,6 @@ function load_optpage_data_accessibility() { 'caption' => _("Delete Selected Attachments"), 'type' => SMOPT_TYPE_STRLIST, 'refresh' => SMOPT_REFRESH_NONE, - 'size' => SMOPT_SIZE_TINY, 'posvals' => $my_a_to_z, ); diff --git a/templates/default/compose_header.tpl b/templates/default/compose_header.tpl index 1c07b703..9f957b96 100644 --- a/templates/default/compose_header.tpl +++ b/templates/default/compose_header.tpl @@ -5,10 +5,11 @@ * Description * * The following variables are available in this template: - * $accesskey_compose_to - The access key to be used for the To field - * $accesskey_compose_cc - The access key to be used for the Cc field - * $accesskey_compose_bcc - The access key to be used for the Bcc field - * $accesskey_compose_subject - The access key to be used for the Subject field + * $accesskey_compose_identity - The access key to be used for the From field + * $accesskey_compose_to - The access key to be used for the To field + * $accesskey_compose_cc - The access key to be used for the Cc field + * $accesskey_compose_bcc - The access key to be used for the Bcc field + * $accesskey_compose_subject - The access key to be used for the Subject field * * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License @@ -35,7 +36,7 @@ extract($t); - id="identity"> $ident) { echo ''; -- 2.25.1