Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Keyboard shortcuts: this is how they are translated between Windows and Mac

Programaste un atajo con Ctrl+S y en Mac tu usuario presiona Cmd+S sin que pase nada: ese bug silencioso aparece en casi cualquier editor web que no distingue entre plataformas. Los atajos de teclado no son solo una preferencia de cada sistema operativo, sino un conjunto de nombres, teclas físicas y propiedades de evento que cambian entre Windows, macOS y Linux, y que tu código tiene que manejar…

Translated from Spanish Read in Spanish

A silent bug occurs in web editors that don't distinguish between platforms when users press keyboard shortcuts. On Mac, pressing Cmd+S doesn't work, while on Windows, Ctrl+S works fine. The issue arises from differences in keyboard shortcuts between Windows, macOS, and Linux. A guide explains how to handle these differences in JavaScript, including the use of metaKey and ctrlKey properties. Keyboard events are affected by platform-specific modifier keys, such as Cmd on Mac and Ctrl on Windows.

Summarised by urgent.news, not translated. Machine-written; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

"iPhone storage full" but your photos are in iCloud? What's actually going on

It's one of the most confusing iPhone messages: you turned on iCloud Photos, you pay for 200 GB or 2 TB, and your phone still says storage almost full .

  • iPhone storage appears full despite iCloud photos enabled
  • Optimize iPhone Storage keeps full-resolution photos in iCloud
  • SnapClean identifies local storage issues and compresses files

More from Friday 9 October →