WebView.type method | Bun module | Bun
BuildDocsReferenceGuidesBlogDiscord/
Bun/
WebView/
typeMtype
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
Bun/
WebView/
typeMtype
method
WebView.typetype(text: string): Promisevoid>;
Insert text into the focused element.
Uses WebKit's InsertText editing command (not keystroke simulation), so no keydown events fire — this is the same path as paste. No IME, no smart-quote substitution; the text lands exactly as given. Fires beforeinput/input with isTrusted: true.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →