add 'v' keyboard shortcut to validate a patch
This commit is contained in:
parent
3055ca95ed
commit
43ba9ed3e7
|
@ -186,6 +186,11 @@ $(function() {
|
|||
if (element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable) {
|
||||
return true; // let it handle
|
||||
}
|
||||
if (ev.key == 'v') {
|
||||
// v: validate patch and open modify/comment section
|
||||
$('#issue_status_id').val('13');
|
||||
$('.contextual .icon-edit').last().trigger('click');
|
||||
}
|
||||
if (ev.key == 'm') {
|
||||
// m: open modify/comment section
|
||||
$('.contextual .icon-edit').last().trigger('click');
|
||||
|
|
Loading…
Reference in New Issue