FS.GG.UI.KeyboardInput
0.26.0
Prefix Reserved
See the version list below for details.
dotnet add package FS.GG.UI.KeyboardInput --version 0.26.0
NuGet\Install-Package FS.GG.UI.KeyboardInput -Version 0.26.0
<PackageReference Include="FS.GG.UI.KeyboardInput" Version="0.26.0" />
<PackageVersion Include="FS.GG.UI.KeyboardInput" Version="0.26.0" />
<PackageReference Include="FS.GG.UI.KeyboardInput" />
paket add FS.GG.UI.KeyboardInput --version 0.26.0
#r "nuget: FS.GG.UI.KeyboardInput, 0.26.0"
#:package FS.GG.UI.KeyboardInput@0.26.0
#addin nuget:?package=FS.GG.UI.KeyboardInput&version=0.26.0
#tool nuget:?package=FS.GG.UI.KeyboardInput&version=0.26.0
FS.GG.UI.KeyboardInput
Package-owned keyboard input runtime, reducer, effect, diagnostics, and state display contracts for FS.GG.UI products.
FS.GG.UI.KeyboardInput is one of the FS.GG.UI distribution packages — an F# / Elmish UI and 2D
scene-graph framework for .NET 10 desktop, rendered through Vulkan + SkiaSharp.
Install
dotnet add package FS.GG.UI.KeyboardInput
Or scaffold a full governed project that wires the FS.GG.UI packages together:
dotnet new install FS.GG.UI.Template
dotnet new fs-gg-ui -o MyApp
Usage
open FS.GG.UI.KeyboardInput
// Bind host keys to product commands.
let bindings =
[ { Key = "ArrowUp"; Command = "move-up" }
{ Key = "Enter"; Command = "confirm" } ]
// Initialise the keyboard runtime model + startup effects.
let model, _initEffects = Keyboard.init bindings
// Normalise a raw host key event, then feed it to the reducer.
let viewerKey, isDown = ViewerKeyboard.normalizeEvent { RawKey = "ArrowUp"; Direction = KeyDown }
let keyId = ViewerKeyboard.toKeyId viewerKey
let model, effects = Keyboard.update (KeyboardMsg.KeyDown keyId) model
// React to resolved commands and surface diagnostics.
for effect in effects do
match effect with
| CommandResolved cmd -> printfn "command resolved: %s" cmd
| ReportKeyboardDiagnostic d -> printfn "[%s] %s" d.Severity d.Message
| _ -> ()
// Project a snapshot for HUD / state display rendering.
let display = Keyboard.stateDisplay model
printfn "pressed: %A active layout: %s" display.PressedKeys display.ActiveLayout
API at a glance
Keyboard.init— builds the initialKeyboardModelfrom aKeyboardBinding listand returns startupKeyboardEffects.Keyboard.update— the Elmish reducer; applies aKeyboardMsg(key down/up, focus lost, layout/mode changes, sequence resolution) and returns the new model plus emitted effects.Keyboard.stateDisplay— projects aKeyboardStateDisplaysnapshot (pressed keys, active layout, mode stack, pending sequence, last command) for rendering.ViewerKeyboard.normalize/normalizeEvent— turn a raw host key string orViewerKeyEventinto a typedViewerKey(plus direction flag).ViewerKeyboard.toKeyId— converts aViewerKeyinto theKeyIdused by bindings and the reducer.KeyboardEffect— the effects the runtime emits:CommandResolved,KeyStateChanged,LayoutChanged,ModeChanged,StateDisplayChanged,ReportKeyboardDiagnostic,RequestHostKeyCapture, and more.KeyboardModel/KeyboardMsg— the runtime state record and the message set driving the reducer.KeyboardDiagnostic— a structured diagnostic (Code,Severity,Message, optionalKey) reported via effects.
Versioning
All FS.GG.UI.* libraries share one version and move together. In a generated project a
single <FsGgUiVersion> in Directory.Packages.props pins every package — upgrading is one
edit; see docs/UPGRADING.md. Pre-release versions use a -preview.N suffix.
Links
- Repository & issues: https://github.com/FS-Skia-UI/FS-Skia-UI
- License: MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- FS.GG.UI.Scene (>= 0.26.0)
- FSharp.Core (>= 10.1.302)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on FS.GG.UI.KeyboardInput:
| Package | Downloads |
|---|---|
|
FS.GG.UI.SkiaViewer
Skia viewer host workflow contracts for FS.GG.UI V3 products. |
|
|
FS.GG.UI.Controls
Declarative Skia controls, rich rendering, chart controls, graph controls, DataGrid, and product-owned control runtime contracts. |
|
|
FS.GG.UI.Controls.Elmish
Elmish command, subscription, and program adapters for Controls and KeyboardInput runtime effects. |
|
|
FS.GG.UI
Optional BOM / metapackage for the FS.GG.UI framework. Reference this single package at one version to pin the entire coherent FS.GG.UI.* set to that version; any attempt to mix a member at a different version fails loudly at restore/build. Ships no assembly — dependencies only. |
|
|
FS.GG.UI.Scene.SvgBrowser
Retained and identified-document SVG DOM adapter for the portable FS.GG.UI.Scene contract. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.33.3 | 333 | 11/11/2026 |
| 0.33.1 | 226 | 11/10/2026 |
| 0.33.0 | 221 | 11/10/2026 |
| 0.32.4 | 989 | 10/30/2026 |
| 0.32.3 | 1,483 | 10/22/2026 |
| 0.32.1 | 967 | 10/6/2026 |
| 0.32.0 | 427 | 10/3/2026 |
| 0.31.0 | 7,150 | 9/14/2026 |
| 0.30.0 | 344 | 9/13/2026 |
| 0.29.0 | 1,414 | 9/12/2026 |
| 0.28.0 | 1,098 | 8/24/2026 |
| 0.27.0 | 390 | 8/22/2026 |
| 0.26.0 | 1,009 | 8/3/2026 |
| 0.21.1 | 1,567 | 7/26/2026 |
| 0.21.0 | 253 | 7/26/2026 |
| 0.20.0 | 275 | 7/26/2026 |
| 0.19.0 | 397 | 7/23/2026 |
| 0.18.6 | 256 | 7/23/2026 |
| 0.18.5 | 255 | 7/22/2026 |
| 0.18.4 | 237 | 7/22/2026 |