add Device:hasKeyboard in device.lua

pull/2/merge
Qingping Hou 12 years ago
parent d295e28046
commit b79fafb863

@ -68,6 +68,10 @@ function Device:hasNoKeyboard()
return self:isTouchDevice() or (self.model == "Kindle4")
end
function Device:hasKeyboard()
return not self:hasNoKeyboard()
end
function Device:isTouchDevice()
if not self.model then
self.model = self:getModel()

Loading…
Cancel
Save