Commit f2b60b78 authored by Brion Vibber's avatar Brion Vibber

Ticket #2272: Block confirmation form should let enter trigger the 'yes' button

Setting focus into the form to make it easier to submit by keyboard. Enter or space will now trigger the button right off without having to mouse around to find the button after we've clicked into the conf form, and keyboarders can also get to the 'no' button more easily.
parent a29c19b4
......@@ -168,4 +168,11 @@ class BlockAction extends ProfileFormAction
return;
}
}
function showScripts()
{
parent::showScripts();
$this->autofocus('form_action-yes');
}
}
......@@ -214,5 +214,12 @@ class GroupblockAction extends Action
303);
}
}
function showScripts()
{
parent::showScripts();
$this->autofocus('form_action-yes');
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment