Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The default pattern shown detects function key labels starting with F, CA, CF, CK, or CMD, followed by a key number and a separator character (=, :, or -), and then some text. Function key labels are matched using this string as a regular expression pattern, the . The pattern specified must capture the key prefix, key number, separator, and label text separately as shown above.

Where do you save this configuration option?  Here


Code Block
languagejavascript
titleAlternate Syntax
 pui["function key pattern"] = /^(F|CA|CF|CK|CMD)([0-9]{1,2})([=:-])(.*)$/i;

The alternate syntax is available after Profound UI V6 FP2.0. It permits you to set the pattern to a RegExp object, allowing you to avoid problems escaping certain characters, such as the backslash (\).