From ceb05f683ebdb2ed06c0e507b1e52f323460f80d Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Wed, 7 Apr 2021 22:14:53 -0400 Subject: [PATCH] equate onenter and onblur --- src/kiri/init.js | 2 +- src/moto/space.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/kiri/init.js b/src/kiri/init.js index c9610727..f52b55dc 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -2143,7 +2143,7 @@ $('rot_x'), selectionRotate, $('rot_y'), selectionRotate, $('rot_z'), selectionRotate - ]); + ], true); $('lab-axis').onclick = () => { UI.lockX.checked = diff --git a/src/moto/space.js b/src/moto/space.js index 5aaed5d5..e5dd7d41 100644 --- a/src/moto/space.js +++ b/src/moto/space.js @@ -229,14 +229,19 @@ } } - function onEnterKey(el, fn) { + function onEnterKey(el, fn, onblur) { if (Array.isArray(el)) { - for (let i=0; i