2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Dobrica Pavlinusic
b8cc9c9a36 exit reader on HOME key 2012-03-04 13:06:35 +01:00
Qingping Hou
6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 2012-03-02 18:38:34 +08:00
Qingping Hou
aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
2012-03-02 13:58:39 +08:00
Qingping Hou
53d4016c64 fix: move shiftmode and altmode to global
now shiftmode and altmode is recoreded in Keys module.  So all the UIs
are sharing these two mode instead of remembering their own. These fix
the bug in UI switchings.

For instance, you use combo 'Alt'+'b' to fire up some menu in pdfreader,
the altmode is set, but the alt key was released after the menu show
up. Then the key release event will only be captured by the menu. So
after you exit from the menu, the altmode is still set in pdfreader,
which is not what we want.
2012-03-02 13:46:15 +08:00
Dobrica Pavlinusic
9a90b4d599 move FW_PRESS to End in emulation 2012-02-29 16:53:40 +01:00
Qingping Hou
417ef640a7 Merge branch 'rotate'
Conflicts:
	filechooser.lua

* merge rotate branch with search branch
* fix font display bug in font menu

not fully tested the new rotation implemention yet.
2012-02-19 15:29:51 +08:00
Qingping Hou
29a9996fb2 mod: inputbox finished 2012-02-18 20:32:38 +08:00
Qingping Hou
3bc71354ed mod: add KEY_DEL for EMU mode 2012-02-18 20:07:28 +08:00
Qingping Hou
8fdb0a4c3e add: demo for inputbox 2012-02-18 18:21:03 +08:00
Qingping Hou
262b8113f7 add: adjustFWKey(code)
adjustFWKey() will change code event for five way keys
according to current rotation mode. Add this to the
input.waitForEvent loop and your UI can navigate properly
in different rotation mode.
2012-02-17 14:52:54 +08:00
Qingping Hou
4b93d2c71b add: F key code in EMU mode 2012-02-16 15:18:28 +08:00
Dobrica Pavlinusic
c2207f0e67 rotate page using J and K keys 2011-12-23 20:48:02 +01:00
HW
5e62e3e4af file mode fixes, added shebang to rendertext example script 2011-12-08 01:25:42 +01:00
HW
a86352dbc4 added enter key for SDL/emu mode 2011-12-08 00:40:44 +01:00
Dobrica Pavlinusic
04087c072f added altmode for smaller pans and zooms 2011-11-26 15:52:20 +01:00
Dobrica Pavlinusic
bdda25f284 move gamma controlls to volume or F11/F12 in emu
Idea is to fee 5way presses for pan/zoom operations in future
2011-11-21 19:30:17 +01:00
HW
a6541596ce added multiple zoom variants
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page

SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out

A = fit to page
S = fit to page width
D = fit to page height

SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height

SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
2011-11-21 01:02:03 +01:00
HW
a07ea2f8b8 factored out key config and tilecache 2011-11-20 21:40:56 +01:00