简体   繁体   中英

Fix cursor to Input control in sapui5 always

I have a requirement where user is required to copy the text to an input every 30 seconds, so that the user wants the cursor to be fixed there, even after clicking or moving somewhere else it should come back to that particular input filed only, so user can paste easily. Please suggest me how can achieve this using SAPUI5.

Thanks,

Instead of locking the "cursor" or focus to a specific field, i'd suggest you react to the paste event on the document/app

https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM