mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix bug where the user was unable to shift navigate from 'Assigned To' to 'Title' field in Maniphest
Test Plan: go to the new task page, go to the 'Assign To' field, assign the task to someone and try to do a Shift-Tab to return to the title field Reviewers: igoleo, btrahan Reviewed By: btrahan CC: aran, Korvin Maniphest Tasks: T2760 Differential Revision: https://secure.phabricator.com/D5547
This commit is contained in:
parent
81377dd922
commit
0d17e58844
2 changed files with 10 additions and 10 deletions
|
@ -114,7 +114,7 @@ JX.install('Event', {
|
|||
*/
|
||||
getSpecialKey : function() {
|
||||
var r = this.getRawEvent();
|
||||
if (!r || r.shiftKey) {
|
||||
if (!r) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,8 +43,7 @@ JX.install('Tokenizer', {
|
|||
'change'],
|
||||
|
||||
properties : {
|
||||
limit : null,
|
||||
nextInput : null
|
||||
limit : null
|
||||
},
|
||||
|
||||
members : {
|
||||
|
@ -326,16 +325,17 @@ JX.install('Tokenizer', {
|
|||
_onkeydown : function(e) {
|
||||
var focus = this._focus;
|
||||
var root = this._root;
|
||||
|
||||
var raw = e.getRawEvent();
|
||||
if (raw.ctrlKey || raw.metaKey || raw.altKey) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (e.getSpecialKey()) {
|
||||
case 'tab':
|
||||
var completed = this._typeahead.submit();
|
||||
if (this.getNextInput()) {
|
||||
if (!completed) {
|
||||
this._focus.value = '';
|
||||
}
|
||||
setTimeout(JX.bind(this, function() {
|
||||
this.getNextInput().focus();
|
||||
}), 0);
|
||||
if (!completed) {
|
||||
this._focus.value = '';
|
||||
}
|
||||
break;
|
||||
case 'delete':
|
||||
|
|
Loading…
Reference in a new issue