![]() ![]() MouseEvent.y Read onlyĪlias for MouseEvent.clientY. MouseEvent.x Read onlyĪlias for MouseEvent.clientX. The amount of pressure applied when clicking. MouseEvent.webkitForce Non-standard Read only This lets you, for example, determine whether a mouse event was generated by an actual mouse or by a touch event (which might affect the degree of accuracy with which you interpret the coordinates associated with the event). ![]() Warning: Since this event has been deprecated, you. Examples of keys that don't produce a character value are modifier keys such as Alt, Shift, Ctrl, or Meta. Examples of keys that produce a character value are alphabetic, numeric, and punctuation keys. The type of device that generated the event (one of the MOZ_SOURCE_* constants). The keypress event is fired when a key that produces a character value is pressed down. MouseEvent.mozInputSource Non-standard Read only Instead of using this deprecated (and non-standard) property, you should use PointerEvent and look at its pressure property. However, it’s important to note that these techniques are not foolproof and can be bypassed by determined users. Disabling right-click and the F12 key can help protect your website content from unauthorized access or copying. The amount of pressure applied to a touch or tablet device when generating the event this value ranges between 0.0 (minimum pressure) and 1.0 (maximum pressure). From above code you can disable the F12, Ctrl + Shift + I, Ctrl + Shift + J and Ctrl + U keys. MouseEvent.mozPressure Non-standard Deprecated Read only Returns true if the shift key was down when the mouse event was fired. The Y coordinate of the mouse pointer in global (screen) coordinates. The X coordinate of the mouse pointer in global (screen) coordinates. ![]() The secondary target for the event, if there is one. ![]() The Y coordinate of the mouse pointer relative to the whole document. The X coordinate of the mouse pointer relative to the whole document. The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node. The X coordinate of the mouse pointer relative to the position of the padding edge of the target node. The Y coordinate of the mouse pointer relative to the position of the last mousemove event. The X coordinate of the mouse pointer relative to the position of the last mousemove event. Returns true if the meta key was down when the mouse event was fired. Returns the vertical coordinate of the event relative to the current layer. Returns the horizontal coordinate of the event relative to the current layer. Returns true if the control key was down when the mouse event was fired. The Y coordinate of the mouse pointer in local (DOM content) coordinates. The X coordinate of the mouse pointer in local (DOM content) coordinates. The buttons being pressed (if any) when the mouse event was fired. The button number that was pressed (if applicable) when the mouse event was fired. Returns true if the alt key was down when the mouse event was fired. This interface also inherits properties of its parents, UIEvent and Event. MSManipulationStateChanged Non-standard.MozMousePixelScroll Non-standard Deprecated.contentvisibilityautostatechange Experimental.This may be the empty string if the browser or device doesn't know the keyboard's locale. Returns a string representing a locale string indicating the locale the keyboard is configured for. Returns a string representing the key value of the key represented by the event. Returns a boolean value that is true if the event is fired between after compositionstart and before compositionend. Returns a boolean value that is true if the Ctrl key was active when the key event was generated. If you want to display the correct keystrokes to the user, you can use Keyboard.getLayoutMap(). Warning: This ignores the user's keyboard layout, so that if the user presses the key at the "Y" position in a QWERTY keyboard layout (near the middle of the row above the home row), this will always return "KeyY", even if the user has a QWERTZ keyboard (which would mean the user expects a "Z" and all the other properties would indicate a "Z") or a Dvorak keyboard layout (where the user would expect an "F"). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |