In codenameone I have a form in which 3 textfield and 1 datepicker.
1.textfield
2.datepicker
3.textfield
4. textfield
When I click on the 3textfield , keyboard is displayed and there is next button and when I click on next button ,it moves to 4 textfield
But when I click on the 1 textfield keyboard is displayed without next button (with done button) and when I click on the done ,it doesnot move to datepicker so I have added nextFoucus/down/right on 1 textfield to move the picker but it stays on 1 textfield when done is clicked
So how to move datepicker from 1 textfield when click on keyboard ?
Focus is designed for non-touch devices. The picker is currently on a part of the next/done cycle on the device.
Changing this should be done deep in the Codename One native code and its not trivial. You can file an RFE in the Codename One issue tracker here.
Related
i'm using react-native-keyboard-aware-scroll-view for form, it is working but getting one issue..
scroll down to the last input and entered the text
scroll up to the top of the screen and clicked on dropdown
Actual Behavior
keyboard dismissed and it is scrolling to last unfocused text input box
it happens only when clicked on out of the text input box or any input like dropdown
or check button
Expected Behavior
need to dissmiss keyboard and not scroll to last unfocused text input
This is my code
<KeyboardAwareScrollView
extraScrollHeight={120}
contentContainerStyle={{flexGrow:1}}
keyboardShouldPersistTaps={'handled'}
keyboardOpeningTime={0}
bounces={false}
bouncesZoom={false}
enableResetScrollToCoords={true}
alwaysBounceVertical={false}
contentInsetAdjustmentBehavior="automatic"
>
packages
react-native:0.64
react-native-keyboard-aware-scroll-view: "^0.9.4"
After iOS 14 introduced the new calendar view, there is a weird behaviour in wkwevbiew: If you click a datetime input field while the keyboard is shown, then the entire web page will be pushed up even after you closed the calendar view.
Step to reproduce:
Creating a webpage that has a text input field and a datetime picker input, and the content height is less than your screen height so the page should not scroll vertically in normal.
Add a wkwebview in you iOS app, and load that webpage.
Click the first text field, which should bring up the keyboard (make sure to show the full keyboard if you are using a simulator). After the keyboard is displayed, the page should be able to scroll vertically (which is expected since the whole page is pushed up by keyboard).
If you simply dismiss the keyboard by clicking the Done button, then the page should return to normal (not scrollable, same as step 3).
But if you keep the keyboard opened, then click the date time picker field (the field below the text field), you should see the calendar view and the keyboard is dismissed.
Click OK to dismiss the calendar view, you will then find that the content of the page is pushed up and is now scrollable.
The demo can be found here:
https://github.com/Noisyfox/ios14-webview-datepicker-issue
Here is a gif:
Is there a workaround for this issue?
I have an autosuggest component (with a TextField from material-ui), my issue is that after selecting a value from the autosuggest (eg. with the mouse), the suggestion remains open since the input still has the focus
How do I navigate to the next focusable element programmatically?
I have a dialog box that appears and while closing keyboard with hideKeyboard(); all the form is closed and i get back to the home page so that i can't continue the scenario for filling other data.
Here the screen :
Just use UIScrollView in your dialog box, and set scroll view class TPKAScrollViewController. Download class
You can fill up the fields first using driver.sendkey() then tap on keyboard next button to switch the driver to the next field untill the last field. in last field you will get done button then you can tap on that button.
The default "strategy" of hideKeyboard(); is to tap outside the keyboard, but this can be changed to pressing a key on the keyboard instead.
See the java-client documentation (assuming you're using java-client?) for available hideKeyboard strategies: http://appium.github.io/java-client/io/appium/java_client/ios/IOSDeviceActionShortcuts.html
If your app's keyboard has for example a "Next" button to close the keyboard with, then you could use: driver.hideKeyboard("Next");
You can test by yourself by cloning this repo https://github.com/sey/ios-keyboard-test.
The problem is the following:
When you enter text in a UITextField and you want to quickly tap a button which position is close to the keyboard the button does not receive touch event at first. You need to wait a small amount of time before tapping on the button does anything.
In the linked project the button action is set to clear the text field. If you enter text and touch the button quickly you will see that the text field does not get cleared and you'll have to touch the button again. If you tap on the button that is on top of the text field (not close to the keyboard) everything work as expected.
I suspect this is a bug from Apple. And I suspect this comes from the fact that some keys on the keyboard show other keys when you long press them (such as E, U). And maybe a hidden frame prevents from touching the button immediately after entering text.
My questions are:
Can you reproduce the bug? And do you know if this has already been
reported with a workaround or else?
[EDIT] Please test in landscape mode.