Keyboard Shelf?

2 views
Skip to first unread message

Tom Skwara

unread,
Mar 11, 2011, 10:30:37 AM3/11/11
to iLuaBox
A peek at a new feature on the horizon called the keyboard shelf. An
excerpt from iLuaHelp:

_SHELF

A global variable (not a function) that holds a table of string pairs
used to populate the keyboard shelf (iPad only).
The keyboard shelf sits just above the standard on-screen keyboard and
can be customized for quick access to user-defined text. The _SHELF
variable can be modified 'on-the-fly' within a script, but is only
examined after the current script chunk finishes execution. Up to 35
label/text pairs can be defined that include multiple characters and
escape codes.

The default keyboard shelf configuration as stored in extras.lua:

-- Up to 35 label/text pairs in ilua._SHELF table will be
-- used to populate the keyboard shelf (iPad only).
-- The 'tab' label corrsponds to the tab key. Replacement
-- text can include multiple characters and escape codes.
_SHELF = {
{"tab", " "},
{"1", "1"},
{"2", "2"},
{"3", "3"},
{"4", "4"},
{"5", "5"},
{"6", "6"},
{"7", "7"},
{"8", "8"},
{"9", "9"},
{"0", "0"},
{"=", "="},
{"(", "("},
{")", ")"},
{"{", "{"},
{"}", "}"},
{"[", "["},
{"]", "]"},
{"\"", "\""},
{"'", "'"},
{"+", "+"},
{"-", "-"},
{"*", "*"},
{"/", "/"},
{"^", "^"},
{"<", "<"},
{">", ">"},
{"%", "%"},
{"~", "~"},
{":", ":"},
{";", ";"},
{"&", "&"},
{"#", "#"},
{"_", "_"},
{"\\", "\\"}}


Tom Skwara
MobileApp Systems

dave

unread,
Mar 11, 2011, 7:36:13 PM3/11/11
to iLuaBox
Sounds good.
That should make programming a lot easier, at least the keying part.

Dave.
Reply all
Reply to author
Forward
0 new messages