Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Atributo del depurador "isSystemKey" de Chrome DevTools

Mientras buscaba en la documentación de chrome.debugger.sendCommand , encontré un atributo, isSystemKey . Me pregunto si esto podría usarse para verificar si una clave es escrita por un humano o un programa (similar al atributo de evento isTrusted ), pero no parece haber ninguna documentación al respecto, en la URL vinculada o en otro lugar. Ni una mención de su uso, por lo que puedo ver.

Entonces, ¿qué hace este atributo booleano?

Un código de ejemplo para ilustrar, dado un carácter c , una identificación de pestaña tab_id y el depurador actualmente adjunto a esa misma pestaña:

 let options = { 'key': c, 'type': 'keyDown', 'nativeVirtualKeyCode': c.charCodeAt(), 'windowsVirtualKeyCode': c.charCodeAt(), 'macVirtualKeyCode': c.charCodeAt(), 'isSystemKey': true // What does this change, compared to its falsy default? } // Pressing key chrome.debugger.sendCommand({tabId: tab_id}, "Input.dispatchKeyEvent", options, () => { // Releasing key options.type = 'keyUp'; chrome.debugger.sendCommand({tabId: tab_id}, "Input.dispatchKeyEvent", options, () => { // Detaching debugger chrome.debugger.detach({tabId: tab_id}); }); });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!