Merge pull request #11783 from keymanapp/fix/web/longpress-key-id-with-modifier

fix(web): fix id of longpress keys with modifier set in touch layout
This commit is contained in:
Joshua Horton 2024-06-17 11:21:41 +07:00 committed by GitHub
commit 4da8b0a792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,8 +16,7 @@ export default class OSKSubKey extends OSKKey {
}
getId(): string {
// Create (temporarily) unique ID by prefixing 'popup-' to actual key ID
return 'popup-'+this.layer+'-'+this.spec['id'];
return 'popup-'+this.spec.elementID;
}
construct(osk: VisualKeyboard, baseKey: KeyElement, width: number, topMargin: boolean): HTMLDivElement {