forked from GNUsocial/gnu-social
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.
This commit is contained in:
parent
a29c19b4de
commit
f2b60b78b6
@ -168,4 +168,11 @@ class BlockAction extends ProfileFormAction
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showScripts()
|
||||||
|
{
|
||||||
|
parent::showScripts();
|
||||||
|
$this->autofocus('form_action-yes');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -214,5 +214,12 @@ class GroupblockAction extends Action
|
|||||||
303);
|
303);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showScripts()
|
||||||
|
{
|
||||||
|
parent::showScripts();
|
||||||
|
$this->autofocus('form_action-yes');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user