Skip to content

Commit

Permalink
remove key binding
Browse files Browse the repository at this point in the history
  • Loading branch information
kaheetonaa committed Oct 17, 2024
1 parent a955c7a commit a4e79e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -41986,7 +41986,6 @@
}
});
modal.append("button").attr("class", "close").attr("title", _t("icons.close")).on("click", shaded.close).call(svgIcon("#iD-icon-close"));
keybinding.on("\u232B", shaded.close).on("\u238B", shaded.close);
select_default2(document).call(keybinding);
}
modal.append("div").attr("class", "content");
Expand Down Expand Up @@ -67791,6 +67790,7 @@
// modules/ui/splash.js
function uiSplash(context) {
return (selection2) => {
if (context.history().hasRestorableChanges()) return;
let updateMessage = "";
const sawPrivacyVersion = corePreferences("sawPrivacyVersion");
let showSplash = !corePreferences("sawSplash");
Expand Down
4 changes: 2 additions & 2 deletions dist/iD.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions modules/ui/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export function uiModal(selection, blocking) {
.on('click', shaded.close)
.call(svgIcon('#iD-icon-close'));

keybinding
.on('⌫', shaded.close)
.on('⎋', shaded.close);
//keybinding
// .on('⌫', shaded.close)
// .on('⎋', shaded.close);

d3_select(document)
.call(keybinding);
Expand Down
2 changes: 2 additions & 0 deletions modules/ui/restore.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function uiRestore(context) {
.on('click', () => {
context.history().restore();
modalSelection.remove();
//modalSelection.close();
});

restore
Expand All @@ -53,6 +54,7 @@ export function uiRestore(context) {
.on('click', () => {
context.history().clearSaved();
modalSelection.remove();
//modalSelection.close();
});

reset
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function uiSplash(context) {
// Exception - if there are restorable changes, skip this splash screen.
// This is because we currently only support one `uiModal` at a time
// and we need to show them `uiRestore`` instead of this one.
//if (context.history().hasRestorableChanges()) return;
if (context.history().hasRestorableChanges()) return;

// If user has not seen this version of the privacy policy, show the splash again.
let updateMessage = '';
Expand Down

0 comments on commit a4e79e8

Please sign in to comment.