Private/KeyboardShortcuts.ps1

# InTUI Help
# Provides the help display for the main UI.

function Show-InTUIHelp {
    <#
    .SYNOPSIS
        Displays the help panel with navigation tips and feature notes.
    #>

    [CmdletBinding()]
    param()

    Clear-Host
    Show-InTUIHeader
    Show-InTUIBreadcrumb -Path @('Home', 'Help')

    Write-InTUILog -Message "Viewing help"

    $navigationContent = @"
[bold]Menu Navigation[/]
[cyan]Up/Down[/] - Navigate menu items
[cyan]Enter[/] - Select item
[cyan]Escape[/] - Go back (in some views)
"@


    Show-InTUIPanel -Title "[blue]Navigation Help[/]" -Content $navigationContent -BorderColor Blue

    $featuresContent = @"
[bold]Caching[/]
API responses are cached locally to improve navigation speed.
Configure in Settings: Toggle, TTL, Clear cache.

"@


    Show-InTUIPanel -Title "[blue]Features[/]" -Content $featuresContent -BorderColor Blue

    $aboutContent = @"
[bold]InTUI[/] - Intune Terminal User Interface
Version: $($script:InTUIVersion)

A terminal UI for Microsoft Intune management.

[grey]Powered by:[/]
- Microsoft Graph API
- Microsoft.Graph.Authentication
- Custom ANSI TUI Engine
"@


    Show-InTUIPanel -Title "[blue]About[/]" -Content $aboutContent -BorderColor Blue

    Read-InTUIKey
}