From 678fe8883be83f3ea216b18db442b5bf3a97d1b7 Mon Sep 17 00:00:00 2001 From: Shawn Date: Sat, 20 Apr 2024 08:22:27 -0700 Subject: [PATCH] Select all text in droInput on click --- app/js/jog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/js/jog.js b/app/js/jog.js index abba4e4..654affb 100644 --- a/app/js/jog.js +++ b/app/js/jog.js @@ -175,6 +175,7 @@ $(document).ready(function() { } else if (unit == "in") { $("#xPosInput").show().focus().val((laststatus.machine.position.work.x / 25.4).toFixed(3)) } + document.getElementById("xPosInput").select(); }); $("#xPosInput").blur(function() { @@ -217,6 +218,7 @@ $(document).ready(function() { } else if (unit == "in") { $("#yPosInput").show().focus().val((laststatus.machine.position.work.y / 25.4).toFixed(3)) } + document.getElementById("yPosInput").select(); }); $("#yPosInput").blur(function() { @@ -257,6 +259,7 @@ $(document).ready(function() { } else if (unit == "in") { $("#zPosInput").show().focus().val((laststatus.machine.position.work.z / 25.4).toFixed(3)) } + document.getElementById("zPosInput").select(); }); $("#zPosInput").blur(function() {