awful.prompt: new arg 'selectall' in add()
commitb4f16ff649926f86abbf0a2c584e45ef8c3f8e76
authorkoniu <gkusnierz@gmail.com>
Wed, 19 Nov 2008 10:44:27 +0000 (19 10:44 +0000)
committerJulien Danjou <julien@danjou.info>
Wed, 19 Nov 2008 12:21:12 +0000 (19 13:21 +0100)
treecd998478f716fa2a2b09911ca2fad589f0d8439a
parent65d5e2914111a7aaed6d9b35445d8ff8455bb5be
awful.prompt: new arg 'selectall' in add()

If set along with 'text' (prefilled content) it will position the cursor at
the beginning of the line and and on text input (and not control keys,
arrows, etc.) will overwrite the prefilled content with the new input.

Signed-off-by: koniu <gkusnierz@gmail.com>
lib/awful/prompt.lua.in