From b3173063ad0ca0a4cab370d0b8348a206b3fe7a3 Mon Sep 17 00:00:00 2001 From: faleumk Date: Mon, 20 Apr 2026 14:33:50 -0600 Subject: [PATCH] [FLEXSIM-6721] Fix Path Point Table Values Updating * There were several keys not being identified when navigating the points table. They were specifically: Tab, Left, Up, Right, and Down. I added them as things to check. * Also added OnKillFocus so if a user clicks out of the table, the cell gets applied. * Updated VK_RETURN to be in hexidecimal (similar to pattern in other places throughout the code). --- AStar.fsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/AStar.fsx b/AStar.fsx index d343798..0fb8848 100644 --- a/AStar.fsx +++ b/AStar.fsx @@ -3407,8 +3407,12 @@ if (!eventdata) { repaintall(); } } - OnKeyUp#define VK_RETURN 13 -if (lastkeydown() == VK_RETURN) { + OnKeyUp#define VK_RETURN 0x0D +#define VK_TAB 0x09 + +if (lastkeydown() == VK_RETURN || + lastkeydown() == VK_TAB || + directionkeypressed()) { applylinks(c); } OnClickif (clickcode() == LEFT_RELEASE) { @@ -3436,6 +3440,7 @@ if (lastkeydown() == VK_RETURN) { OnFocusif (!objectexists(i) || i != c) applylinks(c, 1); + OnKillFocusapplylinks(c); OnMouseWheeltreenode TheTable = ownerobject(c); double vert_nMin = scrollinfo(TheTable,0,1,1); @@ -6281,8 +6286,12 @@ if (!eventdata) { repaintall(); } } - OnKeyUp#define VK_RETURN 13 -if (lastkeydown() == VK_RETURN) { + OnKeyUp#define VK_RETURN 0x0D +#define VK_TAB 0x09 + +if (lastkeydown() == VK_RETURN || + lastkeydown() == VK_TAB || + directionkeypressed()) { applylinks(c); } OnClickif (clickcode() == LEFT_RELEASE) { @@ -6310,6 +6319,7 @@ if (lastkeydown() == VK_RETURN) { OnFocusif (!objectexists(i) || i != c) applylinks(c, 1); + OnKillFocusapplylinks(c); OnMouseWheeltreenode TheTable = ownerobject(c); double vert_nMin = scrollinfo(TheTable,0,1,1);