From 439e27cc10680551e52e411c332c9860af919635 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 14 May 2012 12:20:18 +0900 Subject: [PATCH] Issue #20446 by dead_arm: Added Cursor focus on user login page. --- core/modules/user/user.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 836f101b1905..a23543f2ff53 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1871,6 +1871,9 @@ function user_login($form, &$form_state) { '#size' => 60, '#maxlength' => USERNAME_MAX_LENGTH, '#required' => TRUE, + '#attributes' => array( + 'autofocus' => 'autofocus', + ), ); $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal'))); -- GitLab