- Dear user,
- The copying is forbidden for you.
- If you know JS or HTML, then you can get everything from the page source though.
+
+ Шановний користувач,
+ Копіювання заборонено.
+ Якщо ви знаєте JS або HTML, ви можете отримати все з джерела сторінки.
`, that won't work, because the default action `oncopy` is prevented.
+Якщо ви спробуєте скопіювати фрагмент тексту в `
`, це не спрацює, оскільки типову дію `oncopy` заборонено.
-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.
+Безумовно, користувач має доступ до HTML-джерела сторінки, і може взяти звідти вміст, але не всі знають, як це зробити.
````
-## Summary
+## Підсумки
-Mouse events have the following properties:
+Події миші мають такі властивості:
-- 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)`.
+- Кнопка: `button`.
+- Клавіші-модифікатори (`true`, якщо їх натиснути): `altKey`, `ctrlKey`, `shiftKey` і `metaKey` (Mac).
+ - Якщо ви хочете працювати з `key:Ctrl`, то не забувайте про користувачів Mac, вони зазвичай використовують `key:Cmd`, тому краще перевірити `if (e.metaKey || e.ctrlKey)`.
-- Window-relative coordinates: `clientX/clientY`.
-- Document-relative coordinates: `pageX/pageY`.
+- Координати відносно Window: `clientX/clientY`.
+- Координати відносно Document: `pageX/pageY`.
-The default browser action of `mousedown` is text selection, if it's not good for the interface, then it should be prevented.
+Типова дія браузера `mousedown` -- виділення тексту, якщо в інтерфейсі воно швидше заважає, йому слід запобігти.
-In the next chapter we'll see more details about events that follow pointer movement and how to track element changes under it.
+У наступному розділі ми дізнаємось більше деталей про події, які слідують за рухом курсора, і про те, як відстежувати зміни елементів під ним.