Taglist: do not addTag when presssing TAB in shiftKey mode

This commit is contained in:
Yohan Boniface
2013-02-19 17:49:01 +01:00
parent 88949d6624
commit 5d70ba79d3
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -182,7 +182,8 @@ iD.ui.Taglist = function() {
function pushMore() {
if (d3.event.keyCode === 9 &&
list.selectAll('li:last-child input.value').node() === this) {
list.selectAll('li:last-child input.value').node() === this &&
!d3.event.shiftKey) {
addTag();
focusNewKey();
d3.event.preventDefault();