Hi, im using smartgwt 2.5. We are using shortcuts on Layout component. In FF to prevent Ctrl+a to select everything we use:
Unfortunately this does not work in Chrome. Here everything is selected even before the event is handled so im really not sure how to prevent the browser handling. But in TextItem there ctrl+a works fine so there should be a way.
Can you help me with this?
Code:
flowChart.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if (event.getKeyName().equals("A") && event.isCtrlKeyDown() && flowChart.canSelectAll()) { ... event.cancel(); // don't propagate to browser } } });
Can you help me with this?
Comment