Opened 8 years ago

Closed 7 years ago

#103 closed todo (fixed)

Add shortcuts for common debugging operations

Reported by: jan vrany Owned by:
Priority: minor Milestone: 8.0.0
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description

...such as continue, step-over, step-in.

Make sure shortcuts are customizable and provide a documentation how to change them. Open question is what should be the default. Like in Eclipse?

Change History (3)

comment:1 by jan vrany, 8 years ago

Couple comments:

We need shortcuts configurable. Since there's simply not enough distint shortcuts to cover whole system and since we'd like users to configure shortcuts to their taste, shortcuts would clash. Therefore we need a way to configure shortcuts on per-window basis as well.

When processing shortcuts, the first thing is to translate physical key (#AltP) to a logical key (#PrintId). This is done in DeviceWorkstation>>translateKey:forView:. We need to dispatch back to the view from there and ask a view for a ranslation. The view then can look to its own keyboard map and if translation is not found, pass to super view and so on.

Second thing is to react to shortcut. This is already implemented, see SimpleView >> processShortcut:. You need to override this only if the shortcut is not listed in a menu (which it shoud!!!).

When implementing, make sure menu items correctly show physical key, not logical.

comment:2 by jan vrany, 7 years ago

Milestone: 8.0.0

comment:3 by jan vrany, 7 years ago

Resolution: fixed
Status: newclosed

Doing this took quite some time as I decided to clean up and refactor to allow applications to define their own shortcuts (so far shortcut definition was sort-of-global). As a side effect, shortcut definition has been cleaned up and support for national languages in X11 has been significantly improved (not it works for most languages out of the box. no need to customize keymapping to map from X11 keysym to a characrer. XIC still yet to be implemented).

For now, debugger shortcuts are:

  • Continue - F9
  • Step-Over (Next) - F8
  • Step-In (Send) - F7

For details, see:

Note: See TracTickets for help on using tickets.