Giter VIP home page Giter VIP logo

shortcut_sample's Introduction

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!).

shortcut_sample's People

Contributors

goderbauer avatar hansmuller avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

goderbauer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.