1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +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:
epriestley 2013-04-04 11:34:38 -07:00
parent 81377dd922
commit 0d17e58844
2 changed files with 10 additions and 10 deletions

View file

@ -114,7 +114,7 @@ JX.install('Event', {
*/ */
getSpecialKey : function() { getSpecialKey : function() {
var r = this.getRawEvent(); var r = this.getRawEvent();
if (!r || r.shiftKey) { if (!r) {
return null; return null;
} }

View file

@ -43,8 +43,7 @@ JX.install('Tokenizer', {
'change'], 'change'],
properties : { properties : {
limit : null, limit : null
nextInput : null
}, },
members : { members : {
@ -326,16 +325,17 @@ JX.install('Tokenizer', {
_onkeydown : function(e) { _onkeydown : function(e) {
var focus = this._focus; var focus = this._focus;
var root = this._root; var root = this._root;
var raw = e.getRawEvent();
if (raw.ctrlKey || raw.metaKey || raw.altKey) {
return;
}
switch (e.getSpecialKey()) { switch (e.getSpecialKey()) {
case 'tab': case 'tab':
var completed = this._typeahead.submit(); var completed = this._typeahead.submit();
if (this.getNextInput()) { if (!completed) {
if (!completed) { this._focus.value = '';
this._focus.value = '';
}
setTimeout(JX.bind(this, function() {
this.getNextInput().focus();
}), 0);
} }
break; break;
case 'delete': case 'delete':