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

154
Views
How to subscribe on the keyboard layout changing

If I run this script it returns the same value regardless of the current keyboard layout.

How to subscribe on the keyboard layout changing?

const KeyboardLayout = require('keyboard-layout');
const Cron = require('cron').CronJob;
new Cron(
    '* * * * * *',
    function() {
        const layout = KeyboardLayout.getCurrentKeyboardLayout().replace('com.apple.keylayout.', '');
        console.log('layout', layout);
    },
    null,
    true,
    'America/Los_Angeles'
);
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!