Closed darcywong00 closed 3 years ago
This is not a concern for the iOS app. For reference: https://sentry.keyman.com/share/issue/6e899b94dbb4468183e949938f799b6d/
The Script Error
breadcrumbs are from other errors generated during investigation of this issue. I created a test keyboard, with handwritten script, here: sil_web_keyboard_error.kmp.zip
The custom code:
this.g0 = function(t, e) {
var k = KeymanWeb;
if (this.inputCount == 0) {
k.KO(0, t, "Further keypresses will generate errors.");
this.inputCount++;
return 1;
} else {
throw "Intentional error from keyboard (for testing error-handling code)";
}
}
In essence, one keypress will be handled, and any further keypresses will produce errors.
This is the part of code that receives feedback from JS:
Note that no related fragments appear in the generated Sentry log's report.
Seen in Sentry log https://sentry.keyman.com/organizations/keyman/issues/1977
We need to filter breadcrumbs in Sentry for KMW embedded to avoid navigation that reports keystroke events.
References https://docs.sentry.io/platforms/javascript/enriching-events/breadcrumbs/#customize-breadcrumbs