|
#1
|
|||
|
|||
|
SC version: SmartClient_v82p_2012-05-30
Browser: IE8 only OS: Windows 7 Ultimate SP1 NOTE this issue is not always reproduceable right away. I'll try to explain as clearly as I can - it's difficult to demostrate. In summary, the problem is that at some point the textfield stops accepting keypress when the value is highlighted. Steps to reproduce: 1. Load the sample test case. 2. start typing a value in the field. 3. Now copy a string from elsewhere (eg notepad) 4. Click at the end of the value in the field and highlight, then press ctrl+v right away. Sometimes I have to repeat #4 a few times before the issue happens. Usually when you ctrl+v on a highlighted value, the old value is replaced and the new value is no longer highlighted. Once you see that this is not happening and that the old value stays highlighted, any keypress is now ignored until you click on the textfield again to un-highlight the value. Code:
<HTML><HEAD><TITLE>Copy-Paste Issue</TITLE>
</HEAD>
<body class="pageBackground" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" scroll="no" style="overflow:hidden">
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
<SCRIPT>
isc.setAutoDraw(false);
isc.VStack.create({
ID:"LoginGrid_vCentering",
name:"LoginGrid_vCentering",
autoDraw:true,
height:"100%",width:"100%",
align:"center",
defaultLayoutAlign:"center",
members:
[isc.DynamicForm.create({
ID:"LoginGrid",
name:"LoginGrid",
numCols:3,
colWidths:["144","288","144"],
titleOrientation:"left",
margin:0,
fields:
[{title:" ",
name:"rowSpacer1",
shouldSaveValue:false,
isFirstFocusable:false,
_constructor:"RowSpacerItem"
},
{title:"<nobr>Username <\/nobr>",colSpan:"1",
startRow:true,width:240,align:"center",
ID:"userId2",
name:"userId2",
required:true,
_constructor:"TextItem"},
{title:" ",
name:"columnSpacer1",
shouldSaveValue:false,
isFirstFocusable:false,
startRow:false,
_constructor:"SpacerItem"
},
{title:" ",
name:"columnSpacer2",
shouldSaveValue:false,
isFirstFocusable:false,
startRow:false,
_constructor:"SpacerItem"
}
]})]});
</script>
</BODY>
</html>
I can't get the jsConsole to show in the standalone but I noticed this stacktrace in our environment when this problem does occur - There is a STOP_BUBBLING on the keypress handler but Im not sure where this is coming from. Normal copy+paste wasn't showing this line. Code:
12:51:39.691:TMR3:DEBUG:EventHandler:mousing over [StretchImgButton ID:isc_ImgSectionHeader_4_background]
12:51:39.719:TMR8:DEBUG:EventHandler:mousing out of [StretchImgButton ID:isc_ImgSectionHeader_4_background] mousing over [HStack ID:page$$pageHeader$VRZLogoLeftHL]
12:51:40.988:KDN0:INFO:EventHandler:keyDown event with Canvas target: [CwDynamicFormExtend ID:page$content$$content$headerGridLayout], native target: [BODYElement]{nodeName:BODY}
12:51:40.993:KDN0:DEBUG:EventHandler:Event 'keyDown' bubbled to top
12:51:40.997:KPR1:INFO:EventHandler:keyPress event with Canvas target: [CwDynamicFormExtend ID:page$content$$content$headerGridLayout], native target: [BODYElement]{nodeName:BODY}
12:51:41.000:KPR1:DEBUG:EventHandler:keyPress not handled natively
12:51:41.004:KPR1:DEBUG:EventHandler:Bubbling for event 'keyPress' cancelled via STOP_BUBBLING return value by target: [CwDynamicFormExtend ID:page$content$$content$headerGridLayout]
12:51:41.107:KUP2:INFO:EventHandler:keyUp event with Canvas target: [CwDynamicFormExtend ID:page$content$$content$headerGridLayout], native target: [BODYElement]{nodeName:BODY}
12:51:41.115:KUP2:DEBUG:EventHandler:Event 'keyUp' bubbled to top
|
|
#2
|
|||
|
|||
|
Can anyone confirm this?
|
|
#3
|
|||
|
|||
|
We're not reproducing this, running IE8 on Windows XP.
A few comments: - in your steps to reproduce, you specify: Click at the end of the value in the field and highlight. Does it matter how you highlight the current value? DoubleClick vs Drag the mouse vs something else? There may be some subtlety about this step that we're missing. - you mention that you're running IE8 on Windows 7. By default Windows 7 runs IE9 of course, so this is most likely a debug setup only. Are you able to reproduce this on IE8 on an older version of windows (if not this issue may be moot as customers are unlikely to have this configuration). - there's nothing obvious jumping out at us from the pasted logs. A return value of STOP_BUBBLING should not influence native behavior (A return value of false from keyDown/keyPress probably would). It might be worth enabling the 'nativeFocus' / 'nativeBlur' logs at the debug level in case the browser is somehow getting confused about where focus is in the page and see if there's a difference between the two test cases. Also it might be interesting to evaluate document.activeElement in the developer console. This would show you where the browser believes native focus to be. Hope this helps - there's not much we can give you beyond that without seeing the problem on our end. Regards Isomorphic Software |
|
#4
|
|||
|
|||
|
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Please note that i have also tried this in IE9 and it is still reproduceable.
|
|
#6
|
|||
|
|||
|
We think we've got to the bottom of this. Please try the next nightly build and let us know if the issue persists (dated June 6 2012 or higher, 8.2p branch)
Regards Isomorphic Software |
|
#7
|
|||
|
|||
|
Confirmed is not-reproduceable in 8.2p06-06 build
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TextField with mask property doesnt support copy paste | ppalwaik | Technical Q&A | 0 | 24th Apr 2012 06:31 |
| How to copy and paste data from Excel(several rows data ) to Listgrid | fecc82_2@yahoo.es | Technical Q&A | 1 | 9th Apr 2012 11:19 |
| Issue with copy record list from one grid to another | KHH | Smart GWT Technical Q&A | 0 | 11th Jan 2011 13:23 |
| Copy paste functionality in grid | akhila | Smart GWT Technical Q&A | 2 | 5th Mar 2010 08:17 |
| Copy and Paste from DetailViewer | bradytimes | Technical Q&A | 1 | 8th May 2009 09:13 |