HansMuller / shortcut_sample

A sample that demonstrates mouse and keyboard bindings in the context of a simple app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!).
ezoic increase your site revenue

About

A sample that demonstrates mouse and keyboard bindings in the context of a simple app.


Languages

Language:C++ 40.8%Language:Dart 27.1%Language:CMake 25.0%Language:HTML 2.6%Language:C 2.3%Language:Swift 1.9%Language:Kotlin 0.2%Language:Objective-C 0.1%