mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 00:29:50 +02:00
Make sure combobox can always receive arrow and esc events
This commit is contained in:
@@ -305,6 +305,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
|
||||
|
||||
function esc() {
|
||||
if (d3_select('.combobox').size()) return;
|
||||
context.enter(modeBrowse(context));
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ export function modeSelectData(context, selectedDatum) {
|
||||
|
||||
|
||||
function esc() {
|
||||
if (d3_select('.combobox').size()) return;
|
||||
context.enter(modeBrowse(context));
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ export function modeSelectNote(context, selectedNoteID) {
|
||||
|
||||
|
||||
function esc() {
|
||||
if (d3_select('.combobox').size()) return;
|
||||
context.enter(modeBrowse(context));
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user