"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[29314],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>k});varr=a(67294);functionn(e,t,a){returntine?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}functionp(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}returna}functiono(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}functionl(e,t){if(null==e)return{};vara,r,n=function(e,t){if(null==e)return{};vara,r,n={},p=Object.keys(e);for(r=0;r<p.length;r++)a=p[r],t.indexOf(a)>=0||(n[a]=e[a]);returnn}(e,t);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(e);for(r=0;r<p.length;r++)a=p[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}returnn}vari=r.createContext({}),d=function(e){vart=r.useContext(i),a=t;returne&&(a="function"==typeofe?e(t):o(o({},t),e)),a},s=function(e){vart=d(e.components);returnr.createElement(i.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){vara=e.components,n=e.mdxType,p=e.originalType,i=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),c=d(a),k=n,y=c["".concat(i,".").concat(k)]||c[k]||u[k]||p;returna?r.createElement(y,o(o({ref:t},s),{},{components:a})):r.createElement(y,o({ref:t},s))}));functionk(e,t){vara=arguments,n=t&&t.mdxType;if("string"==typeofe||n){varp=a.length,o=newArray(p);o[0]=c;varl={};for(variint)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeofe?e:n,o[1]=l;for(vard=2;d<p;d++)o[d]=a[d];returnr.createElement.apply(null,o)}returnr.createElement.apply(null,a)}c.displayName="MDXCreateElement"},34870:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>c,frontMatter:()=>o,metadata:()=>i,toc:()=>s});a(67294);varr=a(3905);functionn(){returnn=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vara=arguments[t];for(varrina)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}returne},n.apply(this,arguments)}functionp(e,t){if(null==e)return{};vara,r,n=function(e,t){if(null==e)return{};vara,r,n={},p=Object.keys(e);for(r=0;r<p.length;r++)a=p[r],t.indexOf(a)>=0||(n[a]=e[a]);returnn}(e,t);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(e);for(r=0;r<p.length;r++)a=p[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}returnn}consto={sidebar_label:"Keyboard"},l="Keyboard class",i={unversionedId:"api/puppeteer.keyboard",id:"version-20.7.3/api/puppeteer.keyboard",title:"Keyboard class",description:"Keyboard provides an api for managing a virtual keyboard. The high level api is Keyboard.type(), which takes raw characters and generates proper keydown, keypress/input, and keyup events on your page.",source:"@site/versioned_docs/version-20.7.3/api/puppeteer.keyboard.md",sourceDirName:"api",slug:"/api/puppeteer.keyboard",permalink:"/api/puppeteer.keyboard",draft:!1,tags:[],version:"20.7.3",frontMatter:{sidebar_label:"Keyboard"},sidebar:"api",previous:{title:"Accessibility.snapshot",permalink:"/api/puppeteer.accessibility.snapshot"},next:{title:"Keyboard.down",permalink:"/api/puppeteer.keyboard.down"}},d={},s=[{value:"Signature:",id:"signature",level:4},{value:"Remarks",id:"remarks",level:2},{value:"Example 1",id:"example-1",level:2},{value:"Example 2",id:"example-2",level:2},{value:"Methods",id:"methods",level:2}],u={toc:s};functionc(e){var{components:t}=e,a=p(e,["components"]);return(0,r.kt)("wrapper",n({},u,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",n({},{id:"keyboard-cl