Elisabitao / honeycrm

Automatically exported from code.google.com/p/honeycrm
0 stars 0 forks source link

integrate gmail like shortcuts #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
see gmail help: 
http://mail.google.com/support/bin/answer.py?&ctx=mail&answer=6594

allow users:
 - to call all functions by using shortcuts 
 - to display available shortcuts list

for that we have to find out how to capture shortcuts in a reliable way and 
make a screen cast about measuring/showing the speedup.

Original issue reported on code.google.com by ingo.jae...@gmail.com on 12 Sep 2010 at 1:12

GoogleCodeExporter commented 9 years ago
keycodes can be captured using the FocusPanel which encapsulates all other 
widgets (see 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideA11y.html#kbdA11
y)

final FocusPanel focus = new FocusPanel(new Initializer());
focus.addKeyDownHandler(new KeyDownHandler() {
    @Override
    public void onKeyDown(KeyDownEvent event) {
        if (event.isShiftKeyDown() && event.getNativeKeyCode() == 16) { // == ?) {
        ...
        }
    }
});
focus.setHeight("100%");
RootLayoutPanel.get().add(focus);

only problem with that is a layout issue. the FocusPanel prevents that the 
whole page is visible. only the first ~30px from above are visible.

Original comment by ingo.jae...@gmail.com on 14 Sep 2010 at 1:24

GoogleCodeExporter commented 9 years ago

Original comment by ingo.jae...@gmail.com on 16 Sep 2010 at 9:16