package js_of_ocaml
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Compiler from OCaml bytecode to JavaScript
Install
dune-project
Dependency
Authors
Maintainers
Sources
js_of_ocaml-5.9.0.tbz
sha256=daf2c7811df906fe4a8e59cd6973ccf0bdbe4a7d0e1f1fd17c9584bd0b438594
sha512=67d8f647e453f3855aff556afee0ce4524a7833852343f90271ee7c540e40c3dead0fc728acb667fcf7df69068a7c9521db809d2d0dfa5a1a0b31d0f1b60d566
doc/js_of_ocaml/Js_of_ocaml/Dom_html/Keyboard_code/index.html
Module Dom_html.Keyboard_codeSource
Use Keyboard_code when you want to identify a key that the user pressed. This should be invoked for keydown and keyup events, not keypress events.
If the browser supports the standardized key and code properties, then of_event on a keypress event will have the correct behavior. Otherwise, it might not identify or might mis-identify which key was pressed. This occurs because the keypress event is designed for printable characters while keydown and keyup are designed for physical keys. Thus, the older properties of keyEvent change behavior between keydown and keypress events. This change in behavior is what causes the mapping to be incorrect.
Source
type t = | Unidentified| KeyA| KeyB| KeyC| KeyD| KeyE| KeyF| KeyG| KeyH| KeyI| KeyJ| KeyK| KeyL| KeyM| KeyN| KeyO| KeyP| KeyQ| KeyR| KeyS| KeyT| KeyU| KeyV| KeyW| KeyX| KeyY| KeyZ| Digit0| Digit1| Digit2| Digit3| Digit4| Digit5| Digit6| Digit7| Digit8| Digit9| Minus| Equal| Tab| Enter| Space| Escape| Backspace| Insert| Delete| CapsLock| BracketLeft| BracketRight| Semicolon| Quote| Backquote| Backslash| Comma| Period| Slash| F1| F2| F3| F4| F5| F6| F7| F8| F9| F10| F11| F12| Numpad0| Numpad1| Numpad2| Numpad3| Numpad4| Numpad5| Numpad6| Numpad7| Numpad8| Numpad9| NumpadMultiply| NumpadSubtract| NumpadAdd| NumpadDecimal| NumpadEqual| NumpadEnter| NumpadDivide| NumLock| ControlLeft| ControlRight| MetaLeft| MetaRight| ShiftLeft| ShiftRight| AltLeft| AltRight| ArrowLeft| ArrowRight| ArrowUp| ArrowDown| PageUp| PageDown| Home| End| VolumeMute| VolumeDown| VolumeUp| MediaTrackPrevious| MediaTrackNext| MediaPlayPause| MediaStop| ContextMenu| BrowserSearch| BrowserHome| BrowserFavorites| BrowserRefresh| BrowserStop| BrowserForward| BrowserBack| OSLeft| OSRight| ScrollLock| PrintScreen| IntlBackslash| IntlYen| Pause
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>