Commit graph

74 commits

Author SHA1 Message Date
Joshua Horton
602edbe11b Addresses point 1 of #103 - prevents duplicate requests for identical keyboard-language pairings. 2017-10-06 10:44:31 +07:00
Joshua Horton
16048e5573 setIsChiral() is now operational. 2017-10-04 10:33:16 +07:00
Joshua Horton
d5cfe35927 Merge branch 'master' into web-9-modifier-chirality 2017-09-27 15:18:52 +07:00
Joshua Horton
5775f84269 Fixes up _KeyDown's original documentation comment. 2017-09-25 11:56:15 +07:00
Joshua Horton
e9a85cd2c4 Removed incomplete fix code that snuck in the prior commit. 2017-09-25 11:53:57 +07:00
Joshua Horton
d007a5a22b Undoes physical input support for touch devices while in native (not app-embedded) mode. 2017-09-25 11:50:24 +07:00
Joshua Horton
e61fa5673a Merge branch 'master' into web-9-modifier-chirality 2017-09-25 08:27:31 +07:00
Joshua Horton
7c9a3d6436 Undid Closure notation from added code where possible, enforced single-quotes for consistency/searchability, and polished chirality.js a bit. 2017-09-14 09:32:15 +07:00
Joshua Horton
18e08d2f87 Adds persistent tracking for state key activation, checks for any changes to the modfier state by simple integer comparison and updates OSK accordingly.
Removes `mousemove` based polling due to its potential performance overhead.
2017-09-12 09:46:37 +07:00
Joshua Horton
3d60004118 Patches up a Firefox bug with European layout AltGr presses and KMW OSK management. 2017-09-12 08:32:38 +07:00
Joshua Horton
b87dfe545e AltGr simulation is nearly ready, but has some issues with working properly on... actual European keyboards when the AltGr key is pressed. *sigh* 2017-09-12 08:32:38 +07:00
Joshua Horton
75f21e399c Fixes the handler-removal function name. 2017-09-12 08:32:38 +07:00
Joshua Horton
765ef90af6 Added code facilitating CAPS_LOCK OSK state management when KMW handling is out of focus.
Includes some commented-out prelim work on AltGr simulation... it's proving very tricky.
2017-09-12 08:32:38 +07:00
Joshua Horton
11bed888bc Incorporates most of the requested changes from @mcdurdin's recent PR review.
There's still a bit of work to do on supporting proper CAPS_LOCK state upon element refocusing, as with switching tabs.
2017-09-12 08:32:38 +07:00
Joshua Horton
5d86d1a3e9 Initial implementation of state key handling is now in place. The OSK version of state keys acts just like the OSK version of modifiers. Chiral keyboard now auto-caps all keys when CAPS LOCK is active. 2017-09-12 08:32:38 +07:00
Joshua Horton
b4cab07e22 Behold! Actual chiral output! Supported both by physical keystrokes and osk interaction.
Yet to do:  state keys, embedded integration.
2017-09-12 08:32:38 +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
Joshua Horton
afd43a4345 Fixes the potential layer generator to follow our planned chirality constraints. 2017-09-12 08:32:37 +07:00
darcywong00
00396767cf Address review comments
* Fix formatting
* Remove unnecessary `osk.layerIndex = 0;` line
2017-09-11 12:52:44 +07:00
darcywong00
57deb5c235 Address initial review comments
* Change keyboard.html reference to resetContext()
* Fix javascript typo
* Change system keyboard check from `!SystemKeyboardShouldIgnoreSelectionChange` to `!SystemKeyboardShouldIgnoreTextChange`
* Remove unnecessary code in resetContext()
2017-09-08 10:18:10 +07:00
darcywong00
774802615b remove temporary console.logs 2017-09-07 20:17:43 +07:00
darcywong00
f373695a0b Update resetContext
move to keymanweb.js

Also clean up formatting
2017-09-07 15:06:11 +07:00
Joshua Horton
e539f4eaaf Merge pull request #212 from keymanapp/web-remove-shims
[Web] Removes now-deprecated shim elements.
2017-08-23 12:14:29 +07:00
Joshua Horton
77a63e76ed Attachment API rework (#114)
A massive rework for our attachment and enablement paradigms for web controls targetted for KeymanWeb 10.0, merged from #114.  This also more closely ties the control paths used for page initialization with those used by MutationObservers for dynamically-added elements in an aim to improve internal consistency and facilitate new and future extensions to KMW functionality.
2017-08-23 12:12:48 +07:00
Joshua Horton
a75dc68933 Ensuring previous changes got added. 2017-08-21 14:08:54 +07:00
Joshua Horton
abb9d7444f Removes shim elements and references while deprecating the old shim API functions. 2017-08-21 13:39:30 +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
152880b883 Wrapped most source files with conditional loading scheme in order to block accidentally redefining functionality and data if KMW is loaded multiple times.
A few of the simpler files (definitions of string functions, basic init) were left unchanged.
2017-07-04 09:17:27 +07:00
Joshua Horton
b617e0b22b Relocated keyboard-error testing suite to own folder, replaced timeout example with a more universally-applicable one. 2017-06-27 09:22:52 +07:00
Joshua Horton
205d543546 Final touchups for the error-system renovation PR. 2017-06-26 11:08:20 +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
Joshua Horton
e3276228c1 Incorporated base PR review feedback, cleaned up the refactor of KR() in kmwcallback.js a bit. 2017-06-26 09:35:30 +07:00
Joshua Horton
980e9efc9d Removed old globals that are no longer needed. 2017-06-23 15:56:23 +07:00
Joshua Horton
f5bd2bbf49 Fixed up some Closure errors and warnings. 2017-06-23 15:43:02 +07:00
Joshua Horton
f1afaad3af Redesign of the keyboard loading process - prototype complete! Confirmed in Firefox, Chrome, IE, and Edge! 2017-06-23 15:43:02 +07:00
Marc Durdin
baab20dd34 Merge pull request #94 from keymanapp/web-set-keyboard-api-fix
Web set keyboard api fix
2017-06-14 14:24:24 +07:00
Joshua Horton
5700f646b2 Necessary support for how Google Closure operates. I'm a newb at it, so it's only going in now. 2017-06-14 12:20:26 +07:00
Joshua Horton
2e30d8232b Fixes issues with UI focus handling that interfered with control-by-control handling of languages.
Also fixes issues with the Toggle UI displaying for API-disabled controls.
2017-06-14 10:34:39 +07:00
Joshua Horton
69a58ebea7 Refactoring remaining instances of lgCode -> PLgCode in _setActiveKeyboard. 2017-06-14 09:31:01 +07:00
Joshua Horton
92f4a0f5f4 Corrections as per code review. 2017-06-14 09:22:57 +07:00
Joshua Horton
89dc9b335f Inlined the old setDfltKeyboard() method that was only ever used in one place and was not part of the API. 2017-06-14 08:13:38 +07:00
Joshua Horton
98d8b78708 Fixes an issue where the default keyboard could not be set on page load if a different keyboard was triggered to load asynchronously. 2017-06-13 15:44:37 +07:00
Joshua Horton
8c489f53a4 Fixed an issue where setActiveKeyboard failed to do just that. 2017-06-13 14:08:15 +07:00
Joshua Horton
4199139e8c Fixes issue #88. 2017-06-13 09:36:11 +07:00
Joshua Horton
c731d71fc7 Fix for console log error; one variable was improperly located. 2017-06-05 12:22:01 +07:00
Joshua Horton
8e57fc998a Requested refactoring complete; also changed a return type on a new method to boolean to facilitate any future optimization code. 2017-06-05 10:38:19 +07:00
Joshua Horton
1d122317d1 Previously-mentioned issue now fixed. #63 ready to ship? 2017-06-05 09:36:32 +07:00
Joshua Horton
2d8a69b2a0 Fixed the re-added element problem, but found a new one: already-added elements don't reposition properly upon a text element resize (Triggered by language change, at minimum). 2017-06-05 09:30:47 +07:00
Joshua Horton
1c5fe171ff Consolidated timeout/updateInput code; the inputs now work and arrange themselves properly UNLESS readded to the page, which is the one remaining issue at the moment. 2017-06-05 09:14:52 +07:00