Commit Graph

18 Commits (48299b118cfeac99cc8a18c1a19284567dfdd625)

Author SHA1 Message Date
Dobrica Pavlinusic b8cc9c9a36 exit reader on HOME key 12 years ago
Qingping Hou 6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 12 years ago
Qingping Hou aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
12 years ago
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.
12 years ago
Dobrica Pavlinusic 9a90b4d599 move FW_PRESS to End in emulation 12 years ago
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.
13 years ago
Qingping Hou 29a9996fb2 mod: inputbox finished 13 years ago
Qingping Hou 3bc71354ed mod: add KEY_DEL for EMU mode 13 years ago
Qingping Hou 8fdb0a4c3e add: demo for inputbox 13 years ago
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.
13 years ago
Qingping Hou 4b93d2c71b add: F key code in EMU mode 13 years ago
Dobrica Pavlinusic c2207f0e67 rotate page using J and K keys 13 years ago
HW 5e62e3e4af file mode fixes, added shebang to rendertext example script 13 years ago
HW a86352dbc4 added enter key for SDL/emu mode 13 years ago
Dobrica Pavlinusic 04087c072f added altmode for smaller pans and zooms 13 years ago
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
13 years ago
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
13 years ago
HW a07ea2f8b8 factored out key config and tilecache 13 years ago