12/16/2011, 09:51 AM
|
#1 (permalink) | |
|
Member
|
SYM key does not work on enyo apps using webOS 2.x (perhaps 1.x).
confirmed by ben @ hp... Quote:
https://developer.palm.com/distribut...864d8f6#p97498 Is there a way anyone could patch this? It's most annoying for Pre2 (2.1) users in countries using special characters like germany where the often used umlauts can't be entered SYM+aous, this changed for Pre3 (or perhaps it's cause of 2.2) where the Umlauts are entered by OPT+auos Shouldn't it be possible to press SYM in all apps and get the whole symbols menu to choose from? Last edited by gizmo21; 01/12/2013 at 02:01 PM. |
|
12/17/2011, 08:46 AM
|
#3 (permalink) | |
|
Member
|
Twitter
Quote:
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
|
|
02/22/2012, 06:28 AM
|
#4 (permalink) |
|
Member
|
anybody on this?
enyo is opensourced now, can anybody patch version 1.0 and enable SYM handling via patch?
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
|
02/22/2012, 11:03 AM
|
#6 (permalink) |
|
Member
![]() |
There's a bit more to it. There's a topic on the webOS developer forums where it's discussed in some detail.
-- Sent from my TouchPad using Communities
__________________
Matt Williams Developer of: SMS Auto Forward/Reply, GPS Viewer, Keyring converters for CSV, eWallet, & CodeWallet Touchpad Patches: Keyring HD, ClassicNote HD, YouTube HD (for 2.1 app) |
12/27/2012, 12:56 AM
|
#7 (permalink) |
|
Member
|
so what about enyo2 and openwebos?
any progress there? Forums webOS • View topic - Will HP fix the Enyo problems on webOS phones? - https://developer.palm.com/distribut...?f=109&t=19611 |
12/27/2012, 02:00 AM
|
#8 (permalink) | |
|
Homebrew Developer
![]() ![]()
Posts: 1,385
|
Quote:
-- Sent from my TouchPad using Communities |
|
01/04/2013, 09:49 PM
|
#9 (permalink) | |
|
Member
|
Anyone tried to enter our favorites phone real name Prē into an ENYO app on phones? Or any other symbol not reachable via OPT-key? Not possible? Oh it is
![]() Just put the file symenyo.js (in this post) into the root of an enyo app and add Quote:
Luna restart could be needed. Then you get i nice lil Symbol window where you can choose your favourite Umlauts... Works with ENYO1 apps. ![]() Works :remove this in front of the code (we know we have a Phone on webos2) var hacks_deviceInfo = enyo.fetchDeviceInfo(); var hacks_isPhone = hacks_deviceInfo.platformVersionMajor <= 2; And remove the If (hacks_isPhone) { and the closing } You'll get a popping up sym dialog on ENYO2 Memos. Only pasting the symbols does not work on Enyo2 as it seems a Mojo function is called. But that should be taken care of more advanced enyo hackers. All of the heavy lift work was already done and there on ALL webos 2 phones. The code here is just a cool hack by yeye77 and pc-world to adress those functions easily. Come on Palm you could have at least given this to us with HP Maps (btw. is working too). Some draw backs on this hack solution (which could have been fixed by Palm): https://github.com/enyojs/enyo-1.0/pull/12 like: -The symbol keyboard that pops up by calling "showAltChar" on a service is not nearly as mature as the Mojo one was. I.e. you can't press keys to jump to a section or to immediately write e.g. umlauts. -When pressing the key combination for screenshots (opt+sym+P), the symbol keyboard pops up Ah well fileupload suæ via webos so here is a pastebin of symenyo.js (one to build them all): [JavaScript] symenyo.js - Pastebin.com or [JavaScript] symenyo.js 2 - Pastebin.com
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
Last edited by gizmo21; 03/14/2013 at 06:12 AM. |
|
01/04/2013, 10:19 PM
|
#10 (permalink) |
|
Member
|
![]() ![]() Enyo2: ![]() HP Maps, not that any uses it now after 72ka's google maps ![]()
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
|
01/04/2013, 10:36 PM
|
#11 (permalink) |
|
Member
|
Btw. i tried at first to fix the whole framework on phone by entering code into enyo-build.js but i failed., So I kicked that idea before wrecking the core OS.
As no one knows the sideeffects of that code, it could be better to have devs or users implement those small fixes for themselfs. Any dev willing to try it on their Enyo-apps? Last edited by gizmo21; 01/05/2013 at 10:17 AM. |
01/12/2013, 12:53 PM
|
#13 (permalink) | ||
|
Homebrew Developer
![]()
Posts: 628
|
As gizmo21 asked me to look into getting this working on Enyo 2 (I'm the one who put the Enyo 1 hack together), here is a working script for Enyo 2:
Code:
document.addEventListener("keydown", function(event) {
if (event.keyCode === 17) {
window.hacks_symKeyTarget = event.target;
new PalmServiceBridge().call("palm://com.palm.applicationManager/launch", "{\"id\": \"com.palm.systemui\", \"params\": {\"action\": \"showAltChar\"}}");
}
});
window.hacks_sendFakeKey = function(type, charCode) {
var e = document.createEvent("Events");
e.initEvent(type, true, true);
e.keyCode = charCode;
e.charCode = charCode;
e.which = charCode;
window.hacks_symKeyTarget.dispatchEvent(e);
return e;
};
if (!window.Mojo)
window.Mojo = {};
window.Mojo.relaunch = function(event) {
var altCharSelected = JSON.parse(PalmSystem.launchParams).altCharSelected;
if (!altCharSelected) {
return false;
}
var selection, newEvent, charCode;
// Put the text into the editable element
selection = window.getSelection();
// make sure there are any available range to index as
// getRangeAt does not protect against that
if (selection && selection.rangeCount > 0 && selection.getRangeAt(0)) {
document.execCommand("insertText", true, altCharSelected);
}
// Fire off our fake events
charCode = altCharSelected.charCodeAt(0);
window.hacks_sendFakeKey("keydown", charCode);
window.hacks_sendFakeKey("keypress", charCode);
window.hacks_sendFakeKey("keyup", charCode);
//Event.stop(event);
};
Quote:
Quote:
I've been using this hack for 9 months now in my app QuickChat.
__________________
Apps: File Explorer - fast and simple file manager (incl. text editor and root support on webOS 3) QuickChat for Facebook - real-time Facebook chat on your TouchPad and webOS phones Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.) FTPit! - full-featured FTP client for webOS Twitter: @pcworldSoftware Last edited by pcworld; 01/15/2013 at 02:07 PM. |
||
01/12/2013, 01:32 PM
|
#14 (permalink) | |
|
Member
|
Quote:
I already tried the new one in TravelCost V2 Pro (Enyo2 app in AppCatalog) and it's working ![]()
|
|
01/12/2013, 01:58 PM
|
#15 (permalink) |
|
Member
|
So if an enyo 1/2 does nothing when you press SYM-key on webOS phones you can fix this app on your phone by
1. copying the appropriate .js-file (files attached) to the root of the app into /media/cryptofs/apps/usr/palm/applications/<app-id>/ 2. link to the correct .js in one of the following files by opening with Internals Pro (set to unix linebreaks): ENYO1-app: /media/cryptofs/apps/usr/palm/applications/<app-id>/depends.js Code:
enyo.depends {
...
"symenyo.js",
...
};
ENYO2-app: /media/cryptofs/apps/usr/palm/applications/<app-id>/index.html Code:
... <head> ... <script src="symenyo2.js"></script> </head> ... NOTE: symenyo.js is for Enyo1 apps symenyo2.js is for Enyo2 apps
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
Last edited by gizmo21; 04/09/2013 at 01:07 PM. Reason: Corrected paths sry |
01/13/2013, 04:28 AM
|
#16 (permalink) |
|
Legend
![]()
Posts: 3,881
|
Sweet, thx pcworld. Hope ya don't mind if I add this to an upcoming build of webOSExt
__________________
If you've liked my software, please consider to towards future development.Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more. @JayCanuck @CanuckCoding Facebook |
01/14/2013, 05:17 AM
|
#19 (permalink) |
|
Member
|
App-List:
Quick Chat for Facebook - available (pcworld: "I've been using this hack for 9 months now in my app") DataJog - "upcoming version" (DataJog: "Will get it into DataJog") Travel Cost Pro V2 - "upcoming version" (st@eding: "Is added, works good")
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|- Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
Last edited by gizmo21; 03/14/2013 at 05:41 AM. |
01/14/2013, 07:52 AM
|
#20 (permalink) | |
|
Member
![]()
Posts: 85
|
Quote:
I'm not really familiar with this thread (I'm at work right now, so I have to avoid getting cought on reading forum)but I'm familiar with the NEED of SYM Key functionality. I have a few questions: 1. The path: (/media/cryptofs/app/urs/applications/<app-id>/depends.js) for me the path is similar up to /media/cryptofs/ then there is no app/ but apps/ If I need to track down <app-id> I have to go to /media/cryptofs/apps/usr/palm/applications/ Am I missing something obvious? Maybe I need to create dirs/files where needed? Some hint would be great. 2.What if there's no 'depends.js' or 'index.html' file? I was trying to make SYM Key work for 'Picsel Smart Office' as alternate characters are crucial in my native lenguage. I failed 'couse: 1. the path is different, 2. there's no file ('depends.js' or 'index.html')to edit. Is there a way to patch PSO to work with SYM Key? Best regards -pretoo- EDIT: I have found that something in my memory is ringing a bell. Now I remember: "PSO is a PDK app (i.e is written in C/C++). The SYM key works only in SDK apps (i.e. written in JS using Mojo or Mojo 2)." as isagar2004 was pointing in this thread -> Custom Special Characters This is not going to solve my problem, but answers at least one of my questions. Oh, well. -p-
__________________
Pre3 (UK, QWERTY, Unlocked) webOS 2.2.4 (Build 3175), with UberKernel UK App Catalog via Impostah Orange [PL] Last edited by pretoo; 01/14/2013 at 08:19 AM. Reason: I Find an answer for at least one question |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



