温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/WebView/press
点击访问原文链接

WebView.press method | Bun module | Bun

WebView.press method | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/WebView/pressMpress

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/WebView/pressMpress

method

WebView.presspress(key: string & {} | VirtualKey,options?: PressOptions): Promisevoid>;

Press a key.

Named keys ("Enter", "Backspace", "ArrowLeft", etc.) map to editing commands where available and resolve when WebContent has processed them. "Escape" and keys with modifiers fall back to raw keyDown/keyUp (no WebKit barrier exists for keyboard events — a following evaluate() serializes).

A single character (e.g. "a") combined with modifiers sends a chord like Cmd+A.

Referenced typestype VirtualKey = 'Enter' | 'Tab' | 'Space' | 'Backspace' | 'Delete' | 'Escape' | 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Home' | 'End' | 'PageUp' | 'PageDown'interface PressOptionsmodifiers?: Modifier[]

Modifier keys to hold during the keypress.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

WebView.press method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method bun.WebView.press | Bun