Commit graph

54 commits

Author SHA1 Message Date
Marc Durdin
89f734c70a chore(ios): support iOS 13+ for iPad detection 2022-10-31 16:11:17 +11:00
Marc Durdin
71af6160db fix(ios): iPad was not recognised as tablet device
Fixes #7517.

Cleans up the setDeviceType code which was attempting to set the device
type far too late in the init sequence, and moves responsibility for
detection from kmwembedded.ts to ios-host.ts, as this device test is
iOS-specific.
2022-10-28 13:02:19 +11:00
Marc Durdin
88c7363ab7 fix(ios): only override console object in ios-host if debug enabled 2022-07-05 13:14:39 +10:00
jahorton
9dd69f4ee5 fix(ios): forces host page to use full allotted area 2022-05-18 09:48:33 +07:00
Keyman Server
a9e0575e1f fix(ios): reset context when osk is resized 2022-03-25 14:21:43 +11:00
Keyman Server
71a2b19aee fix(ios): call keyman.resetContext, not keyman.core.resetContext
The iOS code was making a direct call to `keyman.core.resetContext()`
rather than to `keyman.resetContext()`. This meant that the
`OutputTarget` was not set and the `newContext` event would never be
called (as well as triggering a background warning in the language
processor "OutputTarget missing during an invalidateContext call").

Refactored to include a wrapper for `resetContext()` in ios-host.js, as
I think it's better to proxy all calls to KMW consistently through the
host javascript.

(There are a couple of other direct calls which could be cleaned up;
search for "evaluateJavaScript" to find all calls; I think we could
consider build a wrapper for all these calls?)
2022-03-23 09:07:36 +11:00
Marc Durdin
e89eb608e7 fix(ios): reset context on empty context 2022-03-22 12:29:35 +11:00
Keyman Server
9f2246a336 fix(ios): avoid refocus of internal edit
The refocus of internal edit (setActiveElement) after every keystroke
was causing a `newcontext` event to be triggered. We should never need
to do this, but have chosen to move it within the resetContext pattern,
to minimize the changes.
2022-03-18 11:44:29 +11:00
Marc Durdin
5c687559fe chore(ios): separate ios-host.js
This is part of the fix chain for #5853. Split ios-host.js out from
keyboard.html in order to make it easier to debug and mock. No changes
to the content of the sscript, just moving it here.
2022-02-23 15:48:47 +11:00
jahorton
20ea99b665 fix(ios): keyboard swapping 2021-07-21 16:25:50 +07:00
Marc Durdin
073ca98e2e feat(ios): add spacebar text controls
Relates to #949.

Mirror of #5349 (Android), for iOS.

* Adds setSpacebarText() API to Keyman Engine for iOS
* Adds displayName API to Keyman Engine for iOS
* Adds Preference for spacebar text to Keyman Engine for iOS
* Sets default spacebar text to keyboard name for FirstVoices Keyboards
2021-06-25 11:44:09 +10:00
jahorton
4f25f90470 feat(ios): build script option: -download-resources 2021-03-12 09:30:00 +07:00
jahorton
fcc1eae8a5 fix(common): context reset on embedded caret shift 2020-12-04 10:22:10 +07:00
jahorton
349d45c573 fix(android/engine): related Android changes 2020-12-04 08:42:52 +07:00
jahorton
6d111783e3 fix(common/core/web): predictive context reset 2020-12-03 15:48:18 +07:00
jahorton
7cd16a7a52 fix(ios/engine): verifies a KMW load, resetting keyboard page on verification failure 2020-12-02 11:56:42 +07:00
jahorton
53d252408a fix(ios): adds null guard to refreshLayouts call 2020-11-23 14:27:58 +07:00
jahorton
54482e8f1f fix(web/engine): fixes OSK rotation 2020-11-20 10:35:20 +07:00
jahorton
6b33e0a7df fix(ios/engine): fixes keyboard swapping 2020-06-19 10:39:54 +07:00
jahorton
38771d4a2a change(ios/engine): simple-case migration, sil_euro_latin KMP use 2020-06-16 10:58:30 +07:00
jahorton
fb4f02a410 fix(ios/engine): fixes older migration breakages 2020-06-12 15:25:38 +07:00
jahorton
9af50af36d change(ios/engine): adds framework for package-based namespacing 2020-06-11 09:44:26 +07:00
jahorton
28645a6bf1 feat(ios/engine): initial embedded-integration of web-side Sentry 2020-06-08 11:22:43 +07:00
jahorton
7825c29e42 feat(ios/engine): web-sentry-manager inclusion within KeymanEngine 2020-06-08 11:22:43 +07:00
jahorton
670aec6376 fix(web): fixes embedded kbd initialization 2020-03-24 07:21:38 +07:00
jahorton
c6e0563e8b change(ios): Updates default 'en' lexical model version 2020-02-04 09:41:38 +07:00
jahorton
fc0104fa1b Proper copying of lex model kmp from bundle 2019-08-28 15:25:57 +07:00
jahorton
3e686f4011 Base inclusion of MTNT kmp + metadata, no install 2019-08-28 14:46:02 +07:00
jahorton
79e9aa1282 Fixes banner display misalignments. 2019-08-02 13:21:19 +07:00
jahorton
1c03dae60b Enacts predict/correct settings in embedded KMW 2019-07-25 11:52:37 +07:00
jahorton
0dab1a56d5 Reverts in-app banner bit that messed with sys kbd 2019-07-24 14:52:23 +07:00
jahorton
1469e41452 In-app banner scaling workaround 2019-07-24 14:52:23 +07:00
jahorton
4be2652383 Tweaks iOS keyboard.html to use new nomenclature 2019-07-04 10:40:56 +07:00
jahorton
66953448a3 Tweaks iOS changes for better org and use of JSON. 2019-05-14 10:55:26 +07:00
jahorton
02e290aa85 Base work for iOS pred text longpress support. 2019-05-13 15:49:16 +07:00
jahorton
ced7092e61 Removes now-defunct code. 2019-05-03 13:56:18 +07:00
jahorton
6f4969bace Properly manages banner heights. 2019-04-29 15:17:09 +07:00
jahorton
e74f9f2e07 Merge branch 'master' into ios-banner-replacement-image-fix 2019-04-29 14:23:17 +07:00
jahorton
f1848dc6c9 Partial reimplementation of default iOS banner. 2019-04-29 14:19:48 +07:00
jahorton
24dca0e6a6 Adds documentation, integrates partially for iOS. 2019-04-23 09:16:42 +07:00
jahorton
6da4c78161 Extremely rough rip-out-and-replace for the banner 2019-03-27 09:17:10 +07:00
Darcy Wong
1036c73280 Update iOS keyboard to sil_euro_latin-1.8.1.js 2018-12-11 09:55:00 +07:00
Joshua A. Horton
f5465dbae9 Merge branch 'master' into ios-444-keyboard-refactor 2018-12-05 12:13:27 +07:00
Joshua A. Horton
034680d9f4 Heavily reworks much of the iOS app rotation code, simplifying it. 2018-11-16 15:13:52 +07:00
Joshua A. Horton
9a5dd532b9 Relocated new JS function to after a utilized var's def. 2018-11-13 13:13:53 +07:00
Joshua A. Horton
35ffbd3c0c Implements infrastructure needed to support CODE_BEEP. 2018-11-13 12:31:09 +07:00
Joshua A. Horton
7f61df4fd1 Swaps iOS app's default keyboard for SIL European. 2018-10-30 09:03:08 +07:00
Joshua A. Horton
2909957636 Nixes setting window.location.hash b/c of resulting reentrancy issues. 2018-05-11 10:57:12 +07:00
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
Gabriel Wong
e3b0af20fc Escape JavaScript strings more robustly 2017-12-05 15:24:54 +07:00