fix(web): fix id of longpress keys with modifier set in touch layout

Fixes: #11782
Cherry-pick-of: #11783
This commit is contained in:
Joshua A. Horton 2024-06-14 10:06:10 +07:00
parent e6c7d041e4
commit 9dbf95ee72

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, topMargin: boolean): HTMLDivElement {