Add a Painter:key_string() method

develop
lethosor 2017-03-01 15:56:50 -05:00
parent 19695b4ee7
commit c21b7bf941
1 changed files with 4 additions and 0 deletions

@ -354,6 +354,10 @@ function Painter:key(code,pen,...)
)
end
function Painter:key_string(code, text, ...)
return self:key(code):string(': '):string(text, ...)
end
--------------------------
-- Abstract view object --
--------------------------