Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

combos.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. 'use strict';
  2. /**
  3. * Actions are mappings from keypress event names to method names
  4. * in the prompts.
  5. */
  6. exports.ctrl = {
  7. a: 'first',
  8. b: 'backward',
  9. c: 'cancel',
  10. d: 'deleteForward',
  11. e: 'last',
  12. f: 'forward',
  13. g: 'reset',
  14. i: 'tab',
  15. k: 'cutForward',
  16. l: 'reset',
  17. n: 'newItem',
  18. m: 'cancel',
  19. j: 'submit',
  20. p: 'search',
  21. r: 'remove',
  22. s: 'save',
  23. u: 'undo',
  24. w: 'cutLeft',
  25. x: 'toggleCursor',
  26. v: 'paste'
  27. };
  28. exports.shift = {
  29. up: 'shiftUp',
  30. down: 'shiftDown',
  31. left: 'shiftLeft',
  32. right: 'shiftRight',
  33. tab: 'prev'
  34. };
  35. exports.fn = {
  36. up: 'pageUp',
  37. down: 'pageDown',
  38. left: 'pageLeft',
  39. right: 'pageRight',
  40. delete: 'deleteForward'
  41. };
  42. // <alt> on Windows
  43. exports.option = {
  44. b: 'backward',
  45. f: 'forward',
  46. d: 'cutRight',
  47. left: 'cutLeft',
  48. up: 'altUp',
  49. down: 'altDown'
  50. };
  51. exports.keys = {
  52. pageup: 'pageUp', // <fn>+<up> (mac), <Page Up> (windows)
  53. pagedown: 'pageDown', // <fn>+<down> (mac), <Page Down> (windows)
  54. home: 'home', // <fn>+<left> (mac), <home> (windows)
  55. end: 'end', // <fn>+<right> (mac), <end> (windows)
  56. cancel: 'cancel',
  57. delete: 'deleteForward',
  58. backspace: 'delete',
  59. down: 'down',
  60. enter: 'submit',
  61. escape: 'cancel',
  62. left: 'left',
  63. space: 'space',
  64. number: 'number',
  65. return: 'submit',
  66. right: 'right',
  67. tab: 'next',
  68. up: 'up'
  69. };