Move lib/d3.keybinding.js -> util/keybinding.js

almost none of the original d3 "plugin" code remains
This commit is contained in:
Bryan Housel
2018-11-13 13:42:09 -05:00
parent 2ffcec965a
commit bb30cbf555
35 changed files with 176 additions and 231 deletions
+1 -1
View File
@@ -81,7 +81,6 @@
<script src='spec/geo/vector.js'></script>
<script src='spec/lib/d3.combobox.js'></script>
<script src='spec/lib/d3.keybinding.js'></script>
<script src='spec/lib/locale.js'></script>
<script src='spec/modes/add_point.js'></script>
@@ -138,6 +137,7 @@
<script src='spec/ui/fields/wikipedia.js'></script>
<script src='spec/util/clean_tags.js'></script>
<script src='spec/util/keybinding.js'></script>
<script src='spec/util/session_mutex.js'></script>
<script src='spec/util/suggest_names.js'></script>
<script src='spec/util/util.js'></script>
+1 -1
View File
@@ -10,7 +10,7 @@ describe('d3.combobox', function() {
];
function simulateKeypress(key) {
var keyCode = iD.lib.d3keybinding.keyCodes[key];
var keyCode = iD.utilKeybinding.keyCodes[key];
var value = input.property('value');
var start = input.property('selectionStart');
var finis = input.property('selectionEnd');
@@ -1,8 +1,8 @@
describe('d3.keybinding', function() {
describe('utilKeybinding', function() {
var keybinding, spy, input;
beforeEach(function () {
keybinding = iD.lib.d3keybinding('keybinding-test');
keybinding = iD.utilKeybinding('keybinding-test');
spy = sinon.spy();
input = d3.select('body')
.append('input');