Commit graph

27982 commits

Author SHA1 Message Date
Marc Durdin
c965f3978f
Merge pull request #6305 from keymanapp/mcdurdin-patch-1
chore(common): tweak CODEOWNERS
2022-03-02 10:23:04 +11:00
Marc Durdin
6f9fbe9712 fix(ios): tweak simulator builds to support M1
Fixes #6306.

Simulator builds excluded arm64 targets which is not correct for M1
support; although the basic app would run, the app extension (for the
soft keyboard) would not.
2022-03-02 09:05:14 +11:00
Marc Durdin
19d8faa077
Merge pull request #6287 from keymanapp/fix/linux/6285-makedirs
fix(linux): Gracefully handle makedirs failures
2022-03-02 09:02:09 +11:00
Marc Durdin
3df951a530
Merge pull request #6285 from keymanapp/fix/linux/6284-download
fix(linux): Gracefully handle keyboard download failure
2022-03-02 09:01:38 +11:00
Marc Durdin
e2bd4cdca4
Merge pull request #6304 from keymanapp/fix/developer/6303-move-ngrok
fix(developer): move ngrok to Server/bin/
2022-03-02 09:00:19 +11:00
Marc Durdin
b5615e3a4b fix(web): error in floating osk view when no keyboard active
This fixes an issue that arises when loading the Keyman Developer Server
home page and there are registered keyboards, but no keyboards active.
The floating osk view would throw an exception because it would attempt
to set the title of the view from the active keyboard, which is `null`.
2022-03-02 08:46:10 +11:00
Marc Durdin
0cae56d465 feat(developer): support commas in frequency in wordlists
Fixes #3174.

Google Sheets can export TSV files with formatted numbers, including
having commas as thousands separators. Let's ignore those commas.
2022-03-02 08:40:40 +11:00
Marc Durdin
e078440c18 fix(developer): Improve active tab visibility
Fixes #845.
Fixes #3224.

Makes the active tab more visible both in the horizontal file tabs, and
in the vertical activity tabs by changing the background colour to
Keyman Light Blue (css: `#79C3DA`).
2022-03-02 08:36:16 +11:00
Marc Durdin
ec5084c5e3 chore(developer): remove Package for Distribution action
Fixes #4168.

This button no longer makes sense when we have template projects, as it
encourages keyboard developers to create multiple packages. The template
project should already have a package.

It is also not hard to create a package if you don't already have one;
this does not reduce the complexity significantly, apart from the mini
feature of adding both the .js and the .kmx in a single step (the .kvk
is added also by virtue of the .kmx being added, but that is done in
any case if you manually add a .kmx to a package).
2022-03-02 08:31:02 +11:00
Marc Durdin
0f453d7e96 feat(developer): kmcomp -h and -help
Fixes #5415.

This adds `-h` and `-help` command line parameters to kmcomp. As kmcomp
uses only single-hyphen parameters currently, I opted not to support the
common `--help`, just for consistency.
2022-03-02 08:26:34 +11:00
Marc Durdin
160859c2ed fix(developer): font for Package and Model Editors
Fixes #6029.

Allows the user to specify the character and/or code font (where
applicable) for the Package and Model Editors.
2022-03-02 08:18:03 +11:00
Marc Durdin
6734d824a5 fix(web): stop repeated CSS injection 2022-03-02 06:37:51 +11:00
Marc Durdin
16592da996 fix(developer): rename Code to ID in Touch Layout Editor 2022-03-02 06:34:57 +11:00
Keyman Server
bf83edadab
Merge pull request #6308 from keymanapp/auto/version-master-15.0.205
auto: increment master version to 15.0.205
2022-03-02 05:03:24 +11:00
Keyman Build Agent
7dbf3ee7e2 auto: increment master version to 15.0.205 2022-03-01 13:02:38 -05:00
rc-swag
f5449c7757
Merge pull request #6302 from keymanapp/chore/windows/6275/remove-keyman-core-icon
chore(windows): Remove core icon from system tray
2022-03-01 20:27:58 +10:00
Marc Durdin
95fd726b8f
Merge pull request #6298 from keymanapp/fix/developer/6297-server-font
fix(developer): server font support
2022-03-01 11:58:38 +11:00
Marc Durdin
623cab70d8
Merge pull request #6250 from keymanapp/feat/android/android-web-test-harness
feat(android): Android web-based test harness 🎢
2022-03-01 10:00:09 +11:00
Marc Durdin
e9baffb50e chore(android): Merge branch 'master' into feat/android/android-web-test-harness 2022-03-01 08:10:12 +11:00
Marc Durdin
5e5e8e07b8
Merge pull request #6280 from keymanapp/fix/ios/5853-selection-management-ios-1
fix(ios): properly handle selection 🎢
2022-03-01 08:08:37 +11:00
Marc Durdin
d1e77231de
Merge pull request #6279 from keymanapp/chore/ios/split-ios-host-js
chore(ios): separate ios-host.js 🎢
2022-03-01 08:08:30 +11:00
Marc Durdin
7fd2f9d990
Merge pull request #6274 from keymanapp/fix/android/5853-selection-management-android-1
fix(android): properly handle selection 🎢
2022-03-01 08:08:19 +11:00
Marc Durdin
a2496ca389
Merge pull request #6273 from keymanapp/chore/android/5853-split-android-host-js
chore(android): separate android-host.js 🎢
2022-03-01 08:08:10 +11:00
Marc Durdin
6e9969b27c
Merge pull request #6272 from keymanapp/fix/web/5853-selection-not-working
fix(web): properly handle selection 🎢
2022-03-01 08:08:02 +11:00
Marc Durdin
79328eabab
Merge pull request #6249 from keymanapp/fix/web/5853-selection-is-damaged-by-newcontext-event
fix(web): add readonly mode for rule behavior finalization 🎢
2022-03-01 08:07:48 +11:00
Marc Durdin
da0821b552
Update CODEOWNERS 2022-03-01 06:13:42 +11:00
Marc Durdin
38dbc763cd
fix(common): rc-swag not rc_swag 2022-03-01 05:15:45 +11:00
Marc Durdin
5f8b797820
chore(common): tweak CODEOWNERS 2022-03-01 04:59:41 +11:00
Marc Durdin
482b6122a1 fix(developer): move ngrok to Server/bin/
Fixes #6303.

Moves ngrok.exe to %appdata%/Keyman/Keyman Developer/Server/bin/
2022-02-28 20:48:36 +11:00
Ross
bf44bc8ff6 chore(windows): Remove core icon from system tray 2022-02-28 16:38:18 +10:00
Marc Durdin
1b2c213658 chore(developer): disable upload for server except localhost
Fixes #6299.

Moved some of the init to test.js from packages.js. If not on localhost,
then the UI for upload is disabled -- note that backend for upload is
already disabled for non-localhost.

This is necessary to prevent non-local site users uploading arbitrary
files to the cache, which could lead to security bypass.
2022-02-28 15:44:26 +11:00
Marc Durdin
1b3388290d fix(developer): server font support
Fixes #6297.

Five issues fixed from #6297. Note that the fix for point 5
(`font-family` should be keyboard-specific, and it is not being used
per-keyboard in the keyboard registration yet) opts to use a cleaned
identifier for the font filename, but not one that is keyboard-specific,
at this time.
2022-02-28 15:11:39 +11:00
Marc Durdin
db9822147f
chore(android): disable debugging 2022-02-28 15:06:32 +11:00
Marc Durdin
94af38675f fix(developer): use oninput instead of onpaste
oninput covers more cases than onpaste and keyup, and doesn't
lead to marking fields dirty when e.g. Shift is pressed.
2022-02-28 10:51:10 +11:00
Marc Durdin
978b0ab9a1 fix(developer): handle paste event in touch layout editor
Fixes #6077.

Refactor all the text field event handlers to have consistent structure
for edits, pastes and keyboard events. This fixes Ctrl+V paste as well
as tidying up the relevant code.
2022-02-28 10:16:50 +11:00
Keyman Server
15b0031b3e
Merge pull request #6293 from keymanapp/auto/version-master-15.0.204
auto: increment master version to 15.0.204
2022-02-27 05:03:22 +11:00
Keyman Build Agent
7faf71d1a8 auto: increment master version to 15.0.204 2022-02-26 13:02:45 -05:00
Steven R. Loomis
b0b1bd50a7
Merge pull request #6291 from keymanapp/srl295/issue6290
chore(common): remove rust (for now!) 🦀
2022-02-25 17:40:26 -06:00
Marc Durdin
967fe24a1e fix(ios): selection should be utf-16 not scalar 2022-02-25 16:53:59 +11:00
Marc Durdin
e0bba0da02 fix(android): count number of surrogate pairs correctly when deleting
The system keyboard, when deleting-left, would not count the number of
surrogate pairs correctly in the text to delete. This would often leave
it deleting half a surrogate pair.

Rather than change the countSurrogatePairs function, I opted to write
this inline. The countSurrogatePairs function is used elsewhere, it
appears correctly.
2022-02-25 16:05:51 +11:00
Marc Durdin
e7be5f62a4 fix(android): ignore delete-left if selection exists in-app
If there is an active selection, we delete the selection before
inserting text. In this case, we also ignore the deleteLeft value coming
from KeymanWeb, so we won't delete twice.

Note: in the future, we will hopefully refactor this to use
OutputTarget, which will change the way this function works and will
probably clean up some of the spaghetti.
2022-02-25 16:04:05 +11:00
Marc Durdin
7273028192 chore(web): add unit test for selection and matching rule 2022-02-25 15:06:11 +11:00
Steven R. Loomis
3658efa5f1 chore(common): remove rust (for now!) 🦀
Fixes #6290
2022-02-24 17:34:23 -06:00
Marc Durdin
c331758ec1 chore: address review suggestions 2022-02-25 08:52:20 +11:00
Marc Durdin
b1ba2d24d7 chore: enable all test cases 2022-02-25 08:47:14 +11:00
Keyman Server
7f3cd94daf
Merge pull request #6289 from keymanapp/auto/version-master-15.0.203
auto: increment master version to 15.0.203
2022-02-25 05:03:41 +11:00
Keyman Build Agent
40df30749c auto: increment master version to 15.0.203 2022-02-24 13:02:56 -05:00
Eberhard Beilharz
e5b9b81806
fix(linux): Gracefully handle makedirs failures
This change catches the exception we're getting if we try to create
a directory but e.g. there is already a file with that name. In this
case we now output an error message. This change also gracefully
handles failures when linking files.

Fixes #6285.
2022-02-24 18:13:03 +01:00
Eberhard Beilharz
3c8983037d
fix(linux): Gracefully handle keyboard download failure
In the past we already gracefully handled keyboard download failures
when the user triggered the download from the km-config UI. This
change deals with the command line side of things, most often when
the user clicks on the "Install keyboard" button on keyman.com. If
the download fails we already output an error message and now don't
try to install the non-existing .kmp file.

Fixes #6284.
2022-02-24 17:38:23 +01:00
Eberhard Beilharz
65743bcd90
Merge pull request #6278 from keymanapp/fix/linux/6182-versions
fix(linux): Properly compare versions in km-package-install
2022-02-24 16:57:49 +07:00