🧾 Description
This article explains how to remap the Backspace key (hex:0008) on an SX5 device to send a combination of Backspace + Delete (hex:0008 + hex:007F) using Velocity scripting. This remapping is not possible using onboard tools or Scan2Deploy (S2D).
Environment
Device: SX5
Platform: Velocity (Ivanti)
Use Case: Custom key remapping for terminal emulation or application compatibility
Issue
The default key mapping tools (onboard or S2D) do not support sending multiple key codes (e.g., Backspace + Delete) from a single key press. This is required in some host systems or applications that expect both key codes to be sent together.
🛠️ Resolution Steps
Resolution Steps
Solution via Velocity Script
Open your Velocity project in the Velocity Console.
Navigate to the Scripts section.
Add a new Key Macro Script.
Use the following script to remap the Backspace key:
JavaScriptfunction onKeyDown(keyCode, modifiers) { if (keyCode == 0x0008) { // Backspace Velocity.sendKeys("{hex:0008}{hex:007F}"); return true; // Prevent default behavior } return false;}Show more lines
Save and deploy the script to the device.
Test the behavior in your target application to confirm that both key codes are sent when Backspace is pressed.
Reference
Ivanti Support Article: Key macro/key mapping script for backspace key not working
