diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 5622eea..0841c77 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,4 @@
+v1.0.175: Fixed Accidental keybindings on some more Input fields, improved ERROR and ALARM dialogs
v1.0.174: Added Inch/MM mode to Mobile Jog
v1.0.173: Added support (beta) for G2/3 to the Simulator
v1.0.172: Fix spelling error (US vs UK English)
diff --git a/app/index.html b/app/index.html
index e7d9d78..541a6d6 100644
--- a/app/index.html
+++ b/app/index.html
@@ -389,7 +389,7 @@
0.000
-
+
@@ -421,7 +421,7 @@
0.000
-
+
@@ -453,7 +453,7 @@
0.000
-
+
@@ -636,10 +636,10 @@
-
+
-
+
@@ -677,7 +677,8 @@
-
-
+
@@ -984,7 +985,7 @@
Controller Type
-
+
@@ -997,7 +998,7 @@
Port
-
+
@@ -1019,7 +1020,7 @@
-
+
Diameter of your bit / endmill
@@ -1027,7 +1028,7 @@
-
+
Stepover between passes
@@ -1035,7 +1036,7 @@
-
+
Cutting speed
@@ -1043,14 +1044,14 @@
-
+
-
+
Width and Length of the area to machine flat
@@ -1058,7 +1059,7 @@
-
+
How much material to remove
@@ -1162,7 +1163,9 @@
diff --git a/app/js/keyboard.js b/app/js/keyboard.js
index 025d116..87d448a 100644
--- a/app/js/keyboard.js
+++ b/app/js/keyboard.js
@@ -81,8 +81,6 @@ function bindKeys() {
if (keyboardShortcuts.xM.length) {
$(document).bind('keydown', keyboardShortcuts.xM, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
var direction = "X-";
var feed = $('#jograte').val();
@@ -102,8 +100,6 @@ function bindKeys() {
if (keyboardShortcuts.xP.length) {
$(document).bind('keydown', keyboardShortcuts.xP, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
var direction = "X";
var feed = $('#jograte').val();
@@ -124,8 +120,6 @@ function bindKeys() {
if (keyboardShortcuts.yM.length) {
$(document).bind('keydown', keyboardShortcuts.yM, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
var direction = "Y-";
var feed = $('#jograte').val();
@@ -146,8 +140,6 @@ function bindKeys() {
if (keyboardShortcuts.yP.length) {
$(document).bind('keydown', keyboardShortcuts.yP, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
// startJog();
var direction = "Y";
@@ -168,8 +160,6 @@ function bindKeys() {
if (keyboardShortcuts.zM.length) {
$(document).bind('keydown', keyboardShortcuts.zM, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
// startJog();
var direction = "Z-";
@@ -190,8 +180,6 @@ function bindKeys() {
if (keyboardShortcuts.zP.length) {
$(document).bind('keydown', keyboardShortcuts.zP, function(event) {
if (allowContinuousJog) {
- if (event.target.tagName == 'TEXTAREA')
- return;
if (!event.originalEvent.repeat) {
// startJog();
var direction = "Z";
@@ -211,15 +199,11 @@ function bindKeys() {
}
if (keyboardShortcuts.stepM.length) {
$(document).bind('keydown', keyboardShortcuts.stepM, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
changeStepSize(-1)
});
}
if (keyboardShortcuts.stepP.length) {
$(document).bind('keydown', keyboardShortcuts.stepP, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
changeStepSize(1)
});
}
@@ -230,8 +214,6 @@ function bindKeys() {
}
if (keyboardShortcuts.playpause.length) {
$(document).bind('keydown', keyboardShortcuts.playpause, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
if (laststatus.comms.connectionStatus == 1 || laststatus.comms.connectionStatus == 2) {
socket.emit('runJob', editor.getValue());
} else if (laststatus.comms.connectionStatus == 3) {
@@ -243,23 +225,17 @@ function bindKeys() {
}
if (keyboardShortcuts.unlockAlarm.length) {
$(document).bind('keydown', keyboardShortcuts.unlockAlarm, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
Metro.dialog.close($('.closeAlarmBtn').parent().parent());
socket.emit('clearAlarm', 2);
});
}
if (keyboardShortcuts.home.length) {
$(document).bind('keydown', keyboardShortcuts.home, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
home();
});
}
if (keyboardShortcuts.setzeroxyz.length) {
$(document).bind('keydown', keyboardShortcuts.setzeroxyz, function(e) {
- if (e.target.tagName == 'TEXTAREA')
- return;
sendGcode('G10 P1 L20 X0 Y0 Z0')
});
}
diff --git a/app/js/websocket.js b/app/js/websocket.js
index c502f1f..2c6c8ba 100644
--- a/app/js/websocket.js
+++ b/app/js/websocket.js
@@ -164,7 +164,7 @@ function initSocket() {
editor.gotoLine(parseInt(data[1]) - parseInt(data[0]));
}
if (typeof object !== 'undefined' && done > 0) {
- if (object.userData !== 'undefined') {
+ if (object.userData !== 'undefined' && object.userData.lines.length > 2) {
var timeremain = object.userData.lines[object.userData.lines.length - 1].p2.timeMinsSum - object.userData.lines[done].p2.timeMinsSum;
}
if (!isNaN(timeremain)) {
@@ -199,6 +199,8 @@ function initSocket() {
console.log("toast", data)
// toast(" " + data, null, 2300, "bg-red fg-white");
Metro.dialog.create({
+ clsDialog: 'dark',
+ title: " Grbl Alarm:",
content: " " + data,
actions: [{
caption: "Clear Alarm",
@@ -223,7 +225,9 @@ function initSocket() {
// console.log("toast", data)
// toast(" " + data, null, 2300, "bg-red fg-white");
Metro.dialog.create({
- content: " " + data
+ title: " Grbl Error:",
+ content: " " + data,
+ clsDialog: 'dark'
});
//
});
diff --git a/package.json b/package.json
index ef2c759..278e09f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "OpenBuildsCONTROL",
- "version": "1.0.174",
+ "version": "1.0.175",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds ",