fix var not init

on chrome if init widget in onkeydown event handler, widget not get keydown event, and suppressKeyPressRepeat need a init value to prevent got error later.