Commit graph

28 commits

Author SHA1 Message Date
Joshua A. Horton
6b66899a91 Alters kmwembedded.js to let apps specify exact preferred path. Fixes iOS, temp breaks Android. 2017-12-07 10:35:21 +07:00
Darcy Wong
777aa68abd
Merge pull request #456 from keymanapp/android-migrate-folders
Android migrate folders
2017-12-01 15:52:31 +07:00
Joshua Horton
7a4a81856e Fixes up KMW a bit; things aren't perfect yet, though. 2017-11-29 10:11:05 +07:00
darcywong00
e46f6a9cc0 Start moving to new asset structure
By design, kmp keyboards will unzip into /packages/packageID folders. 

1. Moving default eurolatin2 keyboard assets
2. Move old keyboards to new packages structure
2017-11-28 14:48:56 +07:00
Joshua Horton
7f93d45810 Moved the core keyboard processing function to kmwcallback.js. 2017-11-22 12:56:04 +07:00
Joshua Horton
45569b66c6 PR review tweaks, round 1. 2017-11-17 16:02:48 +07:00
Joshua Horton
5ce9a96bf4 ENTER, SPACE, BACKSPACE, and TAB now work when typed within touch-aliased elements. 2017-11-17 14:42:38 +07:00
Joshua Horton
871ab0c6d3 Split the keyboard + OSK control paths for keystroke processing. 2017-11-17 12:38:16 +07:00
Joshua Horton
01f660d048 Merge branch 'master' into web-349-core-refactoring 2017-10-31 09:44:25 +07:00
darcywong00
6c040bb2fa Address review comments
* Fix accessing AltGr shift layer
* Fix AltGr OSK layer to display as "Alt Ctrl"
* Fix how Unicode control characters are filtered out, so U_00A0 can be displayed
2017-10-16 15:09:12 +07:00
darcywong00
cdd75ccf5f Refactor longpress logic so key text is not confused with key code
A tchad keyboard has a diacritic rule that converts `=` (U_003D) into a combining macron (U_0304).
A longpress on `»` (U_00BB) was inadvertently triggering the diacritic rule, and outputting the macron.

The longpress code in KMEA and KMW needs to be refactored so they dont confuse key text (U_00BB is decimal 187) with underlying keyCodes (`=` is keyCode 187).

- fix KMW executePopupKey so key code is dictionary lookup instead of parsing the keyID.
- clean up JS call to executePopupKey since it only uses the keyID
2017-10-12 14:21:29 +07:00
Joshua Horton
afd515901e Major refactor - base object name has been changed to keyman. 2017-10-12 09:03:28 +07:00
Joshua Horton
2180ca5206 Heavily refactored and reformatted the 'callbacks'/interface. 2017-10-12 09:03:28 +07:00
darcywong00
f06c727e51 Refactor longpress text when it's generated by Id
Currently on the touch layout, longpress for K_SPACE causes the app to crash because it is attempting to parse `K_SPACE` as an int for generating the longpress text.

- Clean up when key text is empty how it is parsed from Id
-Change Unicode hex string delimiter from `,0x` to `\\u` which makes it easier to read `executePopupKey()` in the logs.
2017-10-09 09:04:30 +07:00
darcywong00
f9f3dc7449 Document bitmasks and undo getActiveKeyboard refactor
* Document shift states and lock states in kmembedded.js, and standardize `lstates` parameter name
* Leave getActiveKeyboard() refactor as a TODO
2017-10-04 10:33:16 +07:00
darcywong00
f9066a5926 Start adding chirality modifiers to KMEA
This is follow-on to #300 for adding chirality modifiers to KMEA.

Add support for L/R Ctrl, Alt, caps lock, num lock, and scroll lock for external keyboard

- temporarily adding test chriality.js keyboard
2017-10-04 10:33:16 +07:00
Joshua Horton
e61fa5673a Merge branch 'master' into web-9-modifier-chirality 2017-09-25 08:27:31 +07:00
Joshua Horton
71fe50048a Implements proper detection of the modifier state both from the OSK and the physical keyboard and also ensures that osk.clickKey operates as expected for existing keyboards. 2017-09-12 08:32:37 +07:00
darcywong00
f373695a0b Update resetContext
move to keymanweb.js

Also clean up formatting
2017-09-07 15:06:11 +07:00
darcywong00
04dab8c4e5 add hooks to reset default layer 2017-09-06 14:56:25 +07:00
Joshua Horton
a75dc68933 Ensuring previous changes got added. 2017-08-21 14:08:54 +07:00
Joshua Horton
e3728c61fe Addresses the comments of #106. 2017-08-21 12:29:44 +07:00
Marc Durdin
7125e3a08e KeymanWeb 10.0 alpha (#124)
* Fixes #107 - move __BUILD__ and dfltLayout variables into tavultesoft object

* Cherry-pick fix for error from attachment api rework #114

* Fixup missing __BUILD__ reference

* Update header version number

* Fixup broken getDefaultKeyObject() call so we can release 2.0

* Fixes #118 - longpress menu sometimes missing base key on phone devices (#134)

* Add note to build scripts to remind devs to make changes to both scripts
2017-07-26 07:36:58 +07:00
Joshua Horton
7af8b93cf8 Corrects issue #110 - fixes the embedded control path for hardware keyboard input and adds a layer of protection to prevent future touchable-mode breakage. 2017-06-29 10:35:57 +07:00
Joshua Horton
574ac97815 Added a kmwembedded flag to make the error output's condition more explicit, refactored in-PR code to match. 2017-06-26 10:13:02 +07:00
Marc Durdin
487354810e Fixup copyright messages and links to remove references to Tavultesoft 2017-06-14 14:09:12 +07:00
darcywong00
08b299c0d6 Fix SPACEBAR and ENTER key on external keyboard
Fix for sillsdev/keyman/issues/12 where SPACEBAR and ENTER key on an external keyoard weren't registering a keystroke.
2017-06-08 16:23:02 +07:00
Joshua Horton
966b13fea6 Initial merger with the KMEA/KMEI build.bat complete, all build paths tested.
May not handle the BUILD variable properly and doesn't yet have constants for the relative path directories.
2017-06-02 11:01:35 +07:00