11-16-2008, 02:30 PM | #1 |
Groupie
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
|
Use Enter key to turn page
Since the enter key really only does link navigation in the page group, I was wondering if we can reload/add it with pageturn function as well. The motivation of doing this is that, I feel, the enter key is the most comfortable one to press on PRS-505. And needless to say, next_page is the MOST frequently used key on an eReader.
In order to achieve this, I have to modify main.xml with something like this sudo code: Code:
<kbookPage id="PAGE" left="0" right="0" top="0" bottom="30" href="x-id://bookData"> <code> <function id="doCenter"> if (this.isLink()) { this.gotoLink(); } else this.bubble("doNext"); </function> |
11-17-2008, 07:22 PM | #2 |
Addict
Posts: 230
Karma: 1500
Join Date: Oct 2006
Device: Kobo Clara, Sony PRS950, T1, T2, T3
|
That's a good idea - you might see if Jeff would add it to his 505 patcher application "PRSCustomizer."
https://www.mobileread.com/forums/showthread.php?t=27177 |
Advert | |
|
11-17-2008, 11:38 PM | #3 |
Groupie
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
|
Oh, the code I listed are sudo-code, i.e., they don't work yet. I am asking expert's help to find out the proper function to call.
|
11-18-2008, 07:36 PM | #4 |
Addict
Posts: 230
Karma: 1500
Join Date: Oct 2006
Device: Kobo Clara, Sony PRS950, T1, T2, T3
|
See Gwynevans suggestion in this thread:
https://www.mobileread.com/forums/showthread.php?t=30689 I think you could use the same approach. Cheers, Bob |
11-25-2008, 03:37 PM | #5 | |
Wizard
Posts: 1,177
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Quote:
In applicationStart.xml we have: <boolean key="0x27" do="doCenter"/> <boolean key="0x27-hold" do="doCenter"/> So Enter and hold+Enter do the same thing. I suggest mapping Enter to the page turn; this still leaves hold+Enter as it is at the moment: <boolean key="0x27" do="doNext"/> <boolean key="0x27-hold" do="doCenter"/> This seems to me the simplest solution. You just need to remember to hold down the Enter key to get it to do what it currently does. Edit: I have just tried this and it works very well. Last edited by ShellShock; 11-26-2008 at 06:03 PM. |
|
Advert | |
|
11-27-2008, 06:26 PM | #6 | |
Groupie
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-600 Page turn | John F | Sony Reader | 6 | 09-03-2010 09:13 AM |
PRS-300 5 Second to turn Page! | Elton Noway | Sony Reader | 7 | 06-05-2010 06:38 PM |
How to enter network key on PocketBook 302 | kacir | PocketBook | 7 | 05-05-2010 02:25 PM |
Classic Is there a trick to the page turn? | nabour | Barnes & Noble NOOK | 16 | 02-07-2010 06:49 PM |
PRS-500 Direct Page Control with Enter | Nogg | Sony Reader Dev Corner | 81 | 02-28-2008 03:11 AM |