Ranvier.Keyboard.Dom
0.2.0
dotnet add package Ranvier.Keyboard.Dom --version 0.2.0
NuGet\Install-Package Ranvier.Keyboard.Dom -Version 0.2.0
<PackageReference Include="Ranvier.Keyboard.Dom" Version="0.2.0" />
<PackageVersion Include="Ranvier.Keyboard.Dom" Version="0.2.0" />
<PackageReference Include="Ranvier.Keyboard.Dom" />
paket add Ranvier.Keyboard.Dom --version 0.2.0
#r "nuget: Ranvier.Keyboard.Dom, 0.2.0"
#:package Ranvier.Keyboard.Dom@0.2.0
#addin nuget:?package=Ranvier.Keyboard.Dom&version=0.2.0
#tool nuget:?package=Ranvier.Keyboard.Dom&version=0.2.0
Ranvier.Keyboard.Dom / Fable.Ranvier.Keyboard.Dom
Shared DOM KeyboardEvent adapter (namespace Ranvier.Keyboard.Dom, assembly Ranvier.Keyboard.Dom) bridging Ranvier.Dom.KeyboardEvent to Ranvier.Keyboard.
What This Adapter Contains
Ranvier.Keyboard.Dom.KeyboardEvent provides six zero-overhead functions over Ranvier.Dom.KeyboardEvent:
KeyboardEvent.physicalCode (ev: KeyboardEvent) : PhysicalKeyCode— underfickl, aninlinezero-cost read ofev.code(normalizing""/nulltoUnidentifiedCodeand legacy"OSLeft"/"OSRight"toMetaLeft/MetaRight); on.NET, SIMDPhysicalKeyCode.ofW3cCode.KeyboardEvent.modifiers (ev: KeyboardEvent) : KeyModifiers— readsctrlKey,altKey,shiftKey,metaKey, and only callsev.getModifierState "AltGraph"whenaltKey || ctrlKey, avoiding P/Invoke /GCHandlestring pinning overhead on unmodified keystrokes in native WebCore hosts.KeyboardEvent.logicalKey (ev: KeyboardEvent) : LogicalKey— parsesev.keyintoLogicalKey.KeyboardEvent.toKeyChord (ev: KeyboardEvent) : KeyChord— normalizesevinto a 30-bit packedKeyChord(including Shift+ASCII and WindowsCtrl+Alt→AltGraphnormalization).KeyboardEvent.toKeyPress (ev: KeyboardEvent) : KeyPress— combines the normalizedKeyChordwithPhysicalKeyCode.KeyboardEvent.isEscape (ev: KeyboardEvent) : bool— fast allocation-free check for an unmodifiedEscape/Esckey press.
Which Package to Reference
| Scenario | Package to Reference |
|---|---|
Native .NET UI host (Ranvier.View.WebCore, server/native Ranvier.Dom) |
Ranvier.Keyboard.Dom (or Ranvier.Keyboard.Dom.Traced in traced builds) |
Browser Fable (fickl) UI app (Fable.Ranvier.Dom, Ranvier.View.Dom) |
Fable.Ranvier.Keyboard.Dom (or Fable.Ranvier.Keyboard.Dom.Traced in traced builds) |
Pure key engine, keymap parser, .fsx config, SDL/HID input, IPC, or headless tests (no Ranvier.Dom.KeyboardEvent) |
Ranvier.Keyboard alone (works on both .NET and fickl without any DOM dependency) |
Both Ranvier.Keyboard.Dom and Fable.Ranvier.Keyboard.Dom compile to the same assembly name (Ranvier.Keyboard.Dom) and namespace (Ranvier.Keyboard.Dom), so shared view / component source files compile against either package without #if directives.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Core (>= 9.0.100)
- Ranvier.Dom (>= 0.1.0)
- Ranvier.Keyboard (= 0.2.0)
-
net8.0
- FSharp.Core (>= 9.0.100)
- Ranvier.Dom (>= 0.1.0)
- Ranvier.Keyboard (= 0.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ranvier.Keyboard.Dom:
| Package | Downloads |
|---|---|
|
Ranvier.Plume.View
The EditorView component of Ranvier.Plume for Ranvier.View: a virtualised text view with pooled rows, gutters, layers, pointer and keyboard input, and a theme over Ranvier.Css. |
|
|
Ranvier.Plume.View.Traced
The EditorView component of Ranvier.Plume for Ranvier.View: a virtualised text view with pooled rows, gutters, layers, pointer and keyboard input, and a theme over Ranvier.Css. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Pre-1.0 release. The API may change before 1.0.