Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    altKeyDown is not working after uograde smartclient libs

    Hi, guys
    we have problem with altKeyDown in selenium.

    SmartClient Version: 08-16-2011
    Code:
    isc.HLayout.create({
        ID:"HL",name:"HL",
        title:" ",showResizeBar:false,
        height:1,width:"100%",members:
        [ 
           isc.HLayout.create({
               ID:"HLMI",name:"HIMI",
               title:" ",showResizeBar:false,
               height:1,width:"100%",
               defaultLayoutAlign:"center",members:
                   [ isc.MenuButton.create({
                        ID:"admin",canFocus:true,
                        accessKey:"A",hiliteAccessKey:false,
                        title:"Admin",showDown:true,
                        showFocused:false,showEmptyMessage:false,
                        showRollOver:true,autoFit:true,
                        baseStyle:"CwMEIDef",align:"top",
                        showMenuButtonImage:true,
                        menu:isc.Menu.create({
                             ID:"admin$menu",fastCellUpdates:false,
                             canFocus:true,showSelectedStyle:true,
                             title:"Admin ",showDown:true,
                             data:
                                [ {keys:{keyName:"W",shiftKey:false,ctrlKey:false,altKey:true},
                                   title:"Event Log (Alt+W)",ID:"EventLog",
                                   cwIndex:0,auditor:"",
                                   _baseStyle:"CwMEIDefItem",
                                   click: "isc.say('The Eventlog Menu is triggered')",
                                   showDown:true,showOver:true}
                                 ],
                            showRollOver:true,vAlign:"bottom"
                            })
                     })]})]});

    css:
    Code:
    .CwMEIDef {
    color:black;
    cursor:pointer;
    font-size:9pt;
    font-style:normal;
    font-weight:bold;
    padding:4px;
    }
    
    .CwMEIDefItem {
    color:black;
    cursor:pointer;
    font-size:9pt;
    font-style:normal;
    font-weight:bold;
    padding:4px;
    }
    Steps to reproduce:

    press Alt+W, a messgae dialog will be poped up and shows 'The Eventlog Menu is triggered'.
    Before upgrade smartclient libs, we call selenium.altKeyDown() + selenium.keyPress(locator,"W"), the dialog can be seen.
    But after uograding, no dialog is poped up, and nothing is changed in selenium.
Working...
X