cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 

macOS: numeric-keypad digits steal focus to the Tracker with numbers in the browser

Context

We're building a custom Archicad automation tool with Tapir, using its embedded browser palette feature (ShowScriptUI) to show an HTML-based UI for the script instead of a native dialog. While using it, we ran into a keyboard input bug that turned out not to be specific to our script at all -- it also reproduces in a minimal one-field test palette, and in native Archicad input fields outside of any script. Reporting it here since it affects ShowScriptUI-based tools in general on macOS.

 

Summary

On macOS, typing a digit using the physical numeric keypad (distinct from the digit row above the letters) can make Archicad switch focus to the native Tracker (the on-screen distance/coordinate entry that follows the cursor) instead of letting the character be typed into the active text field. This happens both in native Archicad input fields and in Tapir ShowScriptUI palettes (HTML-based script UI). The digit row above the letters is not affected -- only the numeric keypad triggers it.

 

Environment

Archicad: 27
macOS: Sequoia 15.7.7
Tapir: latest release, 1.5.5 -- https://github.com/ENZYME-APD/tapir-archicad-automation/releases/tag/1.5.5

Steps to reproduce

1) Run the attached minimal script (bugreport_numpad_tracker.py, no dependency besides Tapir -- see its docstring for full details). It opens a single ShowScriptUI palette with a single text field and a live log of the keydown events the page receives.
2) Click into the text field.
3) Type a digit from the row above the letters (e.g. "5") -- works normally.
4) Type several digits from the numeric keypad (e.g. "5" on the keypad, Num Lock on) -- on an affected machine, the Tracker/distance-entry cursor takes over instead of the field receiving the character.

 

Disabling the Archicad Tracker appears to stop the issue from occurring. This strongly suggests the Tracker's keyboard handling is intercepting numeric-keypad key events at a level that bypasses normal focus/DOM handling (plausibly a global keyboard monitor), rather than this being specific to any one input field or to ShowScriptUI. We have not yet been able to confirm whether the Tracker's enabled/disabled state fully explains the intermittency, or whether there is an additional factor (e.g. state of the currently active tool/window) -- happy to run further tests if useful.

 

Attachment

bugreport_numpad_tracker.py -- self-contained reproduction script (Python standard library only, plus the Tapir add-on already installed in Archicad). Run with:

python3 bugreport_numpad_tracker.py --port <your Archicad JSON API port, default 19723>

 

Operating system used: Mac Apple Silicon 15.7.7

Archicad 27 - GDL - PYTHON
0 Replies 0

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!