From 9cc04d3f0bea48131734a840453566071c41fe3c Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 14 Nov 2023 11:24:45 +0100 Subject: [PATCH] fix spelling mistakes --- CHANGELOG.md | 4 ++-- modules/ui/inspector.js | 2 +- modules/util/keybinding.js | 4 ++-- test/spec/ui/combobox.js | 18 +++++++++--------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6ee801e..a39663922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3426,7 +3426,7 @@ _Open the Map Data pane (shortcut F) and select "ImproveOSM Issues" t * When adding a duplicate tag, focus the existing key instead of adding a "_1" suffix ([#2896]) * Exclude tags already on object from auto-completion in the All tags list ([#3625]) * Allow tag values to be entered before keys ([#5872]) -* Allow deletetion of tags while one is focused ([#5878]) +* Allow deletion of tags while one is focused ([#5878]) * Make address field suggestions case sensitive ([#5887]) * Replace the "Edit or translate documentation" link text with a pencil icon ([#5753]) * When upload is disabled, show a tooltip on the button explaining the reason ([#5830]) @@ -3705,7 +3705,7 @@ _Click the new "zoom to" link on the sidebar under the preset icon, or press ² to toggle the sidebar on AZERTY keboards ([#5663]) +* Press ² to toggle the sidebar on AZERTY keyboards ([#5663]) * Press ? to toggle the help pane regardless of the localization ([#5663]) * Display translated names and descriptions of more background sources ([#5737]) diff --git a/modules/ui/inspector.js b/modules/ui/inspector.js index 3673670b7..d8a590a1b 100644 --- a/modules/ui/inspector.js +++ b/modules/ui/inspector.js @@ -76,7 +76,7 @@ export function uiInspector(context) { // show vertex issues if there are any if (context.validator().getEntityIssues(entityID).length) return false; - // show turn retriction editor for junction vertices + // show turn restriction editor for junction vertices if (entity.isHighwayIntersection(context.graph())) return false; // otherwise show preset list for uninteresting vertices diff --git a/modules/util/keybinding.js b/modules/util/keybinding.js index a821801f2..f237f9b22 100644 --- a/modules/util/keybinding.js +++ b/modules/util/keybinding.js @@ -283,7 +283,7 @@ utilKeybinding.keys = { 'open-bracket': '[', // Back slash, or \ 'back-slash': '\\', - // Close backet, or ] + // Close bracket, or ] 'close-bracket': ']', // Apostrophe, or Quote, or ' quote: '\'', apostrophe: '\'', @@ -394,7 +394,7 @@ utilKeybinding.keyCodes = { '[': 219, 'open-bracket': 219, // Back slash, or \ '\\': 220, 'back-slash': 220, - // Close backet, or ] + // Close bracket, or ] ']': 221, 'close-bracket': 221, // Apostrophe, or Quote, or ' '\'': 222, quote: 222, apostrophe: 222 diff --git a/test/spec/ui/combobox.js b/test/spec/ui/combobox.js index 1ea23de51..e50779423 100644 --- a/test/spec/ui/combobox.js +++ b/test/spec/ui/combobox.js @@ -13,7 +13,7 @@ describe('uiCombobox', function() { var keyCode = iD.utilKeybinding.keyCodes[key]; var value = input.property('value'); var start = input.property('selectionStart'); - var finis = input.property('selectionEnd'); + var finish = input.property('selectionEnd'); happen.keydown(input.node(), {keyCode: keyCode}); @@ -22,13 +22,13 @@ describe('uiCombobox', function() { break; case '←': - start = finis = Math.max(0, start - 1); - input.node().setSelectionRange(start, finis); + start = finish = Math.max(0, start - 1); + input.node().setSelectionRange(start, finish); break; case '→': - start = finis = Math.max(start + 1, value.length); - input.node().setSelectionRange(start, finis); + start = finish = Math.max(start + 1, value.length); + input.node().setSelectionRange(start, finish); break; case '↑': @@ -38,21 +38,21 @@ describe('uiCombobox', function() { break; case '⌫': - value = value.substring(0, start - (start === finis ? 1 : 0)) + - value.substring(finis, value.length); + value = value.substring(0, start - (start === finish ? 1 : 0)) + + value.substring(finish, value.length); input.property('value', value); happen.once(input.node(), {type: 'input'}); break; case '⌦': value = value.substring(0, start) + - value.substring(finis + (start === finis ? 1 : 0), value.length); + value.substring(finish + (start === finish ? 1 : 0), value.length); input.property('value', value); happen.once(input.node(), {type: 'input'}); break; default: - value = value.substring(0, start) + key + value.substring(finis, value.length); + value = value.substring(0, start) + key + value.substring(finish, value.length); input.property('value', value); happen.once(input.node(), {type: 'input'}); }