javascript - Hide the iOS keyboard maintaining focus on textfield -
i somehow hide keyboard shown in ios whenever focus in textfield.
when "focus", still able type in stuff external keyboard, ios virtual keyboard should not displayed.
stuff previous questions not applicable:
- [textfield resignfirstresponder] --> hides ios keyboard cannot take input events external keyboard anymore.
- [view endediting: yes] --> not work. ssame above.
- javascript onblur() outoffocus not applicable.
does out there know way hide keyboard still listen key events?
i'll answer own question here, if in case stumbles on similar dilemma.
most of answers out there involve losing focus textfiled or resigning first responder. when not option in case want listen keyboard event in ios webview
all have implement uikeyinput in view controller. this, keyboard show up. no make keyboard disappear, reimplement custom keyboard view 0 height.
if want keyboard appear transition different screen, can resign firstreponder leave screen , return nil uiview instead of keyboard view.
Comments
Post a Comment