|
|
#76 |
|
Connoisseur
![]() ![]() Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
|
Yes in hex)
I'll create version without unnecessary changes tomorrow... Do you prefer hex or decimal ten? Last edited by kravitz; 09-15-2010 at 05:22 PM. |
|
|
|
|
#77 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
|
|
|
| Advert | |
|
|
|
|
#78 |
|
Connoisseur
![]() ![]() Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
|
Final release)
|
|
|
|
|
#79 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Thanks. Works.
|
|
|
|
|
#80 |
|
Connoisseur
![]() ![]() Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
|
|
|
|
| Advert | |
|
|
|
|
#81 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
2.0.2preview is out, added "hold <number>" key bindings support (researched by Mark Nord, implemented by kravitz), Book History bugfix. (book list wasn't correctly updated)
|
|
|
|
|
#82 |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
How to check event.key
Maybe a silly question,
but how do I check quickly if a modified ebook.so will fire kUp-hold? |
|
|
|
|
#83 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Mark Nord
On 300 it's easy as 2.0.x has new key bindings code and it is NOT run in a "sandbox" context. On 505 1.1.3 there are at least 2 ways: 1) modify applicationStart.xml, you are after this part: Code:
<boolean key="0x27" do="doCenter"/> <boolean key="0x27-hold" do="doCenter"/> <boolean key="kLeft" do="doLeft"/> <boolean key="kRight" do="doRight"/> <boolean key="kUp" do="doUp"/> <boolean key="kDown" do="doDown"/> Code:
<boolean key="kUp-hold" do="doUpHold"/> Code:
kbook.model.doUpHold = function () {
// log something
}
2) You should be able to catch all events by overriding Fskin.device.handleEvent, say like this: Code:
var oldHandleEvent = Fskin.device.handleEvent;
Fskin.device.handleEvent = function (target, event) {
try {
var key = event.getKey();
// log the key
} catch (e) {
// log error
}
oldHandleEvent.apply(this, arguments);
};
but it won't work in sandbox context, you have to do it via "compile ". So the easiest way is probably to put this code into a separate file, then load it (I think there is even Core.io.getFileContent) and feed it to compile. Then call the function. |
|
|
|
|
#84 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Sony PRS-300
|
i have tried loading different dictionary files. it can be successfully enabled by PRS+. but every time when dictionary is launched, the reader is frozen. no key is responsive. maybe there is a bug?
|
|
|
|
|
#85 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Maybe. To be honest, I still haven't tried this feature. Could you link me the dictionaries that you are using?
|
|
|
|
|
#87 |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Yes, I can confirm the problem. Will be fixed.
|
|
|
|
|
#88 |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
DictionaryCL mod m-land
Hi kartu,
please note before adapting dicto-code that there is a improved version by m-land (still without virtual keyboard) PS: Am I right that the problem with the code is the integration of the now "elevated" Core-functions in dictinory.js? |
|
|
|
|
#89 | |
|
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Quote:
I don't know what the problem is, just adding try catch logging to all dictionary.js functions didn't yield any result. |
|
|
|
|
|
#90 |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2010
Device: Sony PRS-300
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRS-505 PRS+: 2 Questions on "Browse Folders" and Dictionary Format | crc | Sony Reader | 2 | 06-23-2010 02:36 AM |
| PRS-300 English dictionary for PRS-300 | theles92843 | Sony Reader | 7 | 04-23-2010 03:25 PM |
| database of book bindings | Nate the great | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-05-2009 09:59 PM |
| iLiad custom key bindings for fbreader | cnbcad | iRex Developer's Corner | 2 | 05-25-2008 03:27 AM |
| Key Events in Microsoft History | Colin Dunstan | Lounge | 2 | 11-16-2004 02:03 PM |