Hello,
the cursor is not moved when arrow-left/right key is pressed in focused TextItem of DynamicForm, which is placed in Window having overflow set to AUTO. Instead of moving the cursor in TextItem the scrollbars of the window are moved to new position (if they are displayed).
Is it a bug or is there some parameter that must be set to prevent bubbling of the key-press event to the window and to handle it by the TextItem?
Thanks for any hint.
Sample code:
- set focus inside the TextItem and press left or right arrow key
Testing environment:
SmartGWT: 2.2 - SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
browser: IE8, FF3.6.11
the cursor is not moved when arrow-left/right key is pressed in focused TextItem of DynamicForm, which is placed in Window having overflow set to AUTO. Instead of moving the cursor in TextItem the scrollbars of the window are moved to new position (if they are displayed).
Is it a bug or is there some parameter that must be set to prevent bubbling of the key-press event to the window and to handle it by the TextItem?
Thanks for any hint.
Sample code:
- set focus inside the TextItem and press left or right arrow key
Code:
Window tmpWnd = new Window(); tmpWnd.setOverflow(Overflow.AUTO); tmpWnd.setWidth(150); tmpWnd.setHeight(200); DynamicForm tmpFrm = new DynamicForm(); TextItem tmpTI = new TextItem(); tmpTI.setValue("Test Value"); tmpFrm.setItems(tmpTI); tmpWnd.addItem(tmpFrm); tmpWnd.show();
SmartGWT: 2.2 - SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
browser: IE8, FF3.6.11