mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Merge pull request #430 from tigran123/clipboard
Bugfix for the issue #429
This commit is contained in:
commit
f58de262a6
@ -644,12 +644,10 @@ end
|
||||
|
||||
-- returns full filename or nil (if folder)
|
||||
function FileChooser:FullFileName()
|
||||
if self.current > #self.dirs then
|
||||
return self.path.."/"..self.files[self.perpage*(self.page-1)+self.current - #self.dirs]
|
||||
end
|
||||
warningUnsupportedFunction()
|
||||
return nil
|
||||
local pos = self.current + self.perpage*(self.page-1) - #self.dirs
|
||||
return pos > 0 and self.path.."/"..self.files[pos] or warningUnsupportedFunction()
|
||||
end
|
||||
|
||||
-- returns the keycode of released key
|
||||
function FileChooser:ReturnKey()
|
||||
while true do
|
||||
@ -735,4 +733,5 @@ end
|
||||
function warningUnsupportedFunction()
|
||||
InfoMessage:inform("Unsupported function! ", 2000, 1, MSG_WARN,
|
||||
"The requested function is not supported.")
|
||||
return nil
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user