hwhw/kindlepdfviewer — pull request #65 by traycold (2012-03-13 23:17:55+00:00)
Title: issue #55 and help page

Completed the refactoring of input loop of unireader, removing all `if..elseif..end`.
With this commit, every command is defined autonomously, and stored into a table. At the moment the info for every command are:

* shortcut (in case, with modifier);
* help message (description of command);
* function to call when shortcut is clicked.

As a bonus-feature of this refactoring, a help page when reader is active has been implemented (shortcut: H), that lists all defined shortcuts and the description (help message).

Of course, the table with all commands data could be the base for a future menu-based user-interface.