shortcuts.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. 'use strict';
  4. import {
  5. IShortcutItem
  6. } from 'phosphide';
  7. export
  8. const SHORTCUTS: IShortcutItem[] = [
  9. {
  10. command: 'command-palette:activate',
  11. selector: '*',
  12. sequence: ['Alt Space']
  13. },
  14. {
  15. command: 'command-palette:deactivate',
  16. selector: '*',
  17. sequence: ['Escape']
  18. },
  19. {
  20. command: 'file-operations:new-text-file',
  21. selector: '*',
  22. sequence: ['Ctrl O']
  23. },
  24. {
  25. command: 'file-operations:new-notebook',
  26. selector: '*',
  27. sequence: ['Ctrl Shift N']
  28. },
  29. {
  30. command: 'file-operations:save',
  31. selector: '.jp-Document',
  32. sequence: ['Accel S']
  33. },
  34. {
  35. command: 'file-operations:close',
  36. selector: '.jp-Document',
  37. sequence: ['Ctrl Q']
  38. },
  39. {
  40. command: 'file-operations:close-all',
  41. selector: '.jp-Document',
  42. sequence: ['Ctrl Shift Q']
  43. },
  44. {
  45. command: 'notebook:execute-selected-cell',
  46. selector: '.jp-CodeCell',
  47. sequence: ['Shift Enter']
  48. },
  49. {
  50. command: 'notebook:render-selected-cell',
  51. selector: '.jp-MarkdownCel',
  52. sequence: ['Shift Enter']
  53. }
  54. ];