@@ -221,7 +179,7 @@ If we want to disable selection to protect our content from copy-pasting, then w
```
If you try to copy a piece of text in the `
`, that won't work, because the default action `oncopy` is prevented.
-Surely that can't stop the user from opening HTML-source, but not everyone knows how to do it.
+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.
````
## Summary
@@ -230,16 +188,11 @@ Mouse events have the following properties:
- Button: `which`.
- 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 use `key:Cmd`, so it's better to check `if (e.metaKey || e.ctrlKey)`.
+ - 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)`.
- Window-relative coordinates: `clientX/clientY`.
- Document-relative coordinates: `pageX/pageY`.
-It's also important to deal with text selection, it may be an unwanted side-effect of clicks.
+The default browser action of `mousedown` is text selection, if it's not good for the interface, then it should be prevented.
-There are several ways to do this, for instance:
-1. The CSS-property `user-select:none` (with browser prefixes) completely disables text-selection.
-2. Cancel the selection post-factum using `getSelection().removeAllRanges()`.
-3. Handle `mousedown` and prevent the default action (usually the best).
-
-The selection is a separate topic, covered in another chapter .
+In the next chapter we'll see more details about events that follow pointer movement and how to track element changes under it.