Make sure combobox can always receive arrow and esc events

This commit is contained in:
Bryan Housel
2018-12-05 15:59:06 -05:00
parent b494684e4f
commit 77a9dde6f7
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -305,6 +305,7 @@ export function modeSelect(context, selectedIDs) {
function esc() {
if (d3_select('.combobox').size()) return;
context.enter(modeBrowse(context));
}
+1
View File
@@ -56,6 +56,7 @@ export function modeSelectData(context, selectedDatum) {
function esc() {
if (d3_select('.combobox').size()) return;
context.enter(modeBrowse(context));
}
+1
View File
@@ -78,6 +78,7 @@ export function modeSelectNote(context, selectedNoteID) {
function esc() {
if (d3_select('.combobox').size()) return;
context.enter(modeBrowse(context));
}
+1
View File
@@ -347,6 +347,7 @@ export function uiInit(context) {
function pan(d) {
return function() {
if (d3_select('.combobox').size()) return;
d3_event.preventDefault();
context.pan(d, 100);
};