- Dear user,
- The copying is forbidden for you.
- If you know JS or HTML, then you can get everything from the page source though.
+
+ Querido usuario,
+ El copiado está prohibida para ti.
+ Si sabes JS o HTML entonces puedes obtener todo de la fuente de la página.
`, that won't work, because the default action `oncopy` is prevented.
+Si intenta copiar un fragmento de texto en el `
` no va a funcionar porque la acción default de `oncopy` fue evitada.
-Surely the user has access to HTML-source of the page, and can take the content from there, but not everyone knows how to do it.
+Seguramente el usuario tiene acceso a la fuente HTML de la página, y puede tomar el contenido desde allí, pero no todos saben cómo hacerlo.
````
-## Summary
+## Resumen
-Mouse events have the following properties:
+Los eventos del mouse tienen las siguientes propiedades:
-- Button: `button`.
-- Modifier keys (`true` if pressed): `altKey`, `ctrlKey`, `shiftKey` and `metaKey` (Mac).
- - If you want to handle `key:Ctrl`, then don't forget Mac users, they usually use `key:Cmd`, so it's better to check `if (e.metaKey || e.ctrlKey)`.
+- Botón: `button`.
+- Teclas modificadoras (`true` si fueron presionadas): `altKey`, `ctrlKey`, `shiftKey` y `metaKey` (Mac).
+ - Si quieres controlar las acciones de la tecla `key:Ctrl` no te olvides de los usuarios de Mac que generalmente usan `key:Cmd`, de manera que es mejor ferificar con la condicional: `if (e.metaKey || e.ctrlKey)`.
-- Window-relative coordinates: `clientX/clientY`.
-- Document-relative coordinates: `pageX/pageY`.
+- Coordenadas relativas a la ventana: `clientX/clientY`.
+- Coordenadas relativas al documento: `pageX/pageY`.
-The default browser action of `mousedown` is text selection, if it's not good for the interface, then it should be prevented.
+La acción predeterminada del navegador `mousedown` es la selección del texto, si no es bueno para la interfaz, entonces debe evitarse.
-In the next chapter we'll see more details about events that follow pointer movement and how to track element changes under it.
+En el próximo capítulo veremos más detalles sobre los eventos que siguen al movimiento del puntero y cómo rastrear los cambios de elementos debajo de él.