diff --git a/inputbox.lua b/inputbox.lua index ed581899b..1ceea8a0a 100644 --- a/inputbox.lua +++ b/inputbox.lua @@ -208,6 +208,11 @@ function InputBox:addAllCommands() {KEY_1, "1"}, {KEY_2, "2"}, {KEY_3, "3"}, {KEY_4, "4"}, {KEY_5, "5"}, {KEY_6, "6"}, {KEY_7, "7"}, {KEY_8, "8"}, {KEY_9, "9"}, {KEY_0, "0"}, + + {KEY_SPACE, " "}, + + -- DXG keys + {KEY_DOT, "."}, {KEY_SLASH, "/"}, } for k,v in ipairs(INPUT_KEYS) do self.commands:add(v[1], nil, "", diff --git a/launchpad/kpdf.sh b/launchpad/kpdf.sh index a2b714b75..5c0611f2e 100755 --- a/launchpad/kpdf.sh +++ b/launchpad/kpdf.sh @@ -8,7 +8,7 @@ cd /mnt/us/kindlepdfviewer/ grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host -./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log +./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host diff --git a/pdfreader.lua b/pdfreader.lua index c6d55d9ad..4c2772104 100644 --- a/pdfreader.lua +++ b/pdfreader.lua @@ -41,7 +41,7 @@ function PDFReader:getText(pageno) return nil end local text = page:getPageText() - print(dump(text)) + --print("## page:getPageText "..dump(text)) -- performance impact on device page:close() return text end diff --git a/unireader.lua b/unireader.lua index 47125b968..3026bcb2a 100644 --- a/unireader.lua +++ b/unireader.lua @@ -342,6 +342,8 @@ function UniReader:startHighLightMode() end end + print("## _findFirstWordInView none found in "..dump(t)) + return nil end @@ -2021,5 +2023,6 @@ function UniReader:addAllCommands() unireader:goto(unireader.pageno) end ) - print("## defined commands "..dump(self.commands.map)) + -- commands.map is very large, impacts startup performance on device + --print("## defined commands "..dump(self.commands.map)) end