GitXplorerGitXplorer
H

shortcut_sample

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
1fdf471d0b8ba23e77d240b7d3b4a895285a4fae

Merge pull request #5 from HansMuller/add_undo_redo

HHansMuller committed 4 years ago
Unverified
a621cb1360c9d192a491fac7efb01e0b6ba9a1ad

Added undo and redo (control-Z and control-Y)

committed 4 years ago
Verified
c07033bdfe16e427c954e1d65cbc713a32078fd4

Merge pull request #4 from HansMuller/version_two

HHansMuller committed 4 years ago
Unverified
9f53b34cb289035033fd87e60c37a78562b39758

Actions apply to selected items, Model.items is an Iterable, more shortcuts

committed 4 years ago
Verified
cc0e1a33681d7bcae22a6becf3305cfe8f446b00

Merge pull request #3 from goderbauer/shortcuts

HHansMuller committed 4 years ago
Unverified
d8901a571a546efe77c6c0ad68cd9940ea0d0d45

++

ggoderbauer committed 4 years ago

README

The README file for this repository.

shortcut_sample

Demonstrates how shortcuts, Intents, and Actions can be used to bind mouse and keyboard events to application behavior.

TODO

  • Define shortcuts for the arrow keys which move the selected item. Control and shift modifiers should change the motions incremental x,y delta. If no item is selected, then the up/down arrow keys should scroll.
  • Define shortcuts that move the selection to the next/previous item.
  • Define an Action that means "addItemAt" and create a shortcut (maybe for space) that adds the Item somewhere that's not too surprising.
  • Define an Action that deletes the selected item and create delete and backspace shortcuts for it.
  • Define a way to bind mouse gestures to actions, notably "addItemAt" and "selectItemAt".
  • Enable moving the focus to items and enable editing their labels.
  • Support dragging items with the mouse.
  • Support adding resize-handles to items (double click or long tap) and changing their size.
  • Enable moving the selected item with the "w a s d" keyboard keys, as in many games.
  • Enable multiple selection.
  • Z-order: send forward/backwards to-front/to-back.
  • Enable changing the selected item's color.
  • Shortcuts that rearrange the items' layout in rows/columns (animation!).