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.
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.
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
Comment