react-touch-screen-keyboard icon indicating copy to clipboard operation
react-touch-screen-keyboard copied to clipboard

fixed keyboard- always displayed

Open trentbrooks opened this issue 7 years ago • 2 comments

Hi, is there a way to keep the keyboard onscreen/displayed at all times? eg. with showKeyboard somehow

trentbrooks avatar Jun 28 '18 06:06 trentbrooks

@trentbrooks I'm looking into a way to pass a <Keyboard /> component into the <KeyboardInput /> for issue #44 this would also resolve your issue. However i might be possible to have a prop option if that's more favorable for your case.

You might also be able to do it using the ref option recently added.

reganlawton avatar Jun 28 '18 06:06 reganlawton

Hey, yeah i've tried to set directly using the ref option. It works but the problem is this line https://github.com/xtrinch/react-touch-screen-keyboard/blob/master/src/KeyboardedInput.js#L119. If i catch the onBlur event and call this.inputRef.setState({ showKeyboard: true }) straight after it's set to false as the callback fires first. Any tips for a temporary fix?

trentbrooks avatar Jun 28 '18 06:06 trentbrooks