I have added key press handler on a smartgwt Treegrid. My requirement is to provide user copy paste option of Treegrid items using keyboard shortcuts like (CTRL+C),(CTRL+V),But none of them are functioning with IE11 compatibility mode off.
Same is working fine with IE8 and Chrome.
Need help to resolve this issue.
SC Version:- v10.0p_2015-03-05/Pro Deployment (2015-03-05)
Below is the code block I am using which works fine in IE8:-
TreeGrid clipboardGrid = new TreeGrid();
clipboardGrid.setHeight100();
clipboardGrid.setWidth100();
clipboardGrid.setSelectionType(SelectionStyle.SINGLE);
clipboardGrid.setCanFocus(true);
addKeyPressHandler(new KeyPressHandler(){
@Override
public void onKeyPress(KeyPressEvent event) {
if(event.isCtrlKeyDown() && event.getKeyName().equalsIgnoreCase("c"))
{
SC.showPrompt("Initiating Copy using Ctrl+C");
setHilitedNodeIds(null);
final FacilityTree tree = (FacilityTree)event.getSource();
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
public void execute() {
//Do Copy Working in IE8
SC.clearPrompt();
}
});
}
}
});
SC Version:- v10.0p_2015-03-05/Pro Deployment (2015-03-05)
Same is working fine with IE8 and Chrome.
Need help to resolve this issue.
SC Version:- v10.0p_2015-03-05/Pro Deployment (2015-03-05)
Below is the code block I am using which works fine in IE8:-
TreeGrid clipboardGrid = new TreeGrid();
clipboardGrid.setHeight100();
clipboardGrid.setWidth100();
clipboardGrid.setSelectionType(SelectionStyle.SINGLE);
clipboardGrid.setCanFocus(true);
addKeyPressHandler(new KeyPressHandler(){
@Override
public void onKeyPress(KeyPressEvent event) {
if(event.isCtrlKeyDown() && event.getKeyName().equalsIgnoreCase("c"))
{
SC.showPrompt("Initiating Copy using Ctrl+C");
setHilitedNodeIds(null);
final FacilityTree tree = (FacilityTree)event.getSource();
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
public void execute() {
//Do Copy Working in IE8
SC.clearPrompt();
}
});
}
}
});
SC Version:- v10.0p_2015-03-05/Pro Deployment (2015-03-05)
Comment