Dlg custom rc for key

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dlg_custom_rc_for_key

Purpose

Find the return code for a configured custom dialog key.

Arguments

  • $1 — pressed key; reads the custom_keys collection.

Output

Prints a custom return code (starting at 10) for matching keys.

Returns

  • 0 when the key matches; nonzero otherwise.

Usage

  sgnd_dlg_custom_rc_for_key "X"