[initial html and coffescript files Betty Diegel **20121124004146 Ignore-this: fe3ef0bdbf1dbb93feaf11e852159628 ] addfile ./client/dist/index.html hunk ./client/dist/index.html 1 + + + + + + + + + + + + + + +
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
  5. Item 3
  6. +
  7. Item 4
  8. +
  9. Item 5
  10. +
  11. Item 6
  12. +
  13. Item 7
  14. +
+ + + addfile ./client/src/keys.coffee hunk ./client/src/keys.coffee 1 +($ document).ready -> + + $(".ui-widget-content").bind { + keydown: (e) -> + key = e.keyCode + target = $ e.currentTarget + + switch key + when 38 # arrow up + target.prev().focus() + break + when 40 # arrow down + target.next().focus() + break + + focusin: (e) -> + ($ e.currentTarget).addClass "ui-selected" + + + focusout: (e) -> + ($ e.currentTarget).removeClass "ui-selected" + + } + ($ "li").first().focus() +