FS#10455 - Allow the user to abort rb.kbd_input in the Lua plugin

Attached to Project: Rockbox
Opened by Christophe Gragnic (Grahack) - Monday, 20 July 2009, 13:50 GMT
Last edited by Maurus Cuelenaere (mcuelenaere) - Thursday, 23 July 2009, 00:54 GMT
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The kdb_input C function returns -1 if the user aborts, which is not implemented in the relevant kbd_input function of the Lua plugin (rb.kbd_input).
This patch fixes this: rb.kbd_input returns nil if the user aborted, or the string she validated.
Applies on r21979.
This task depends upon

Closed by  Maurus Cuelenaere (mcuelenaere)
Thursday, 23 July 2009, 00:54 GMT
Reason for closing:  Accepted
Additional comments about closing:  In r22008