소스 검색

Added docs for customizing keyboard shortcuts (#137)

* added docs for customizing shortcuts

* updated shortcut docs
Saikyun 4 년 전
부모
커밋
7d4d6e2d86
4개의 변경된 파일331개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      docs/en/manuals/editor.md
  2. 102 0
      docs/en/manuals/examples/keymap_linux.edn
  3. 119 0
      docs/en/manuals/examples/keymap_macos.edn
  4. 102 0
      docs/en/manuals/examples/keymap_win.edn

+ 8 - 0
docs/en/manuals/editor.md

@@ -134,6 +134,8 @@ To add asset files (images, sounds, models etc) to your project, simply drag and
 
 ## Keyboard shortcuts
 
+### Default shortcuts
+
 | Command | Windows | macOS | Linux |
 |---------|---------|-------|-------|
 | Add | <kbd>A</kbd> | <kbd>A</kbd> | <kbd>A</kbd> |
@@ -234,6 +236,12 @@ To add asset files (images, sounds, models etc) to your project, simply drag and
 | Zoom out | <kbd>Ctrl</kbd>+<kbd>'-'</kbd> | <kbd>Cmd</kbd>+<kbd>'-'</kbd> | <kbd>Ctrl</kbd>+<kbd>'-'</kbd> |
 
 
+### Customizing shortcuts
+
+You can customize keyboard shortcuts by creating a configuration file (e.g. `keymap.edn` in your home directory). Then go into <kbd>File ▸ Preferences</kbd>, and set <kbd>Path to custom keymap</kbd> to the created file. You need to restart Defold after setting this setting, and every time you edit the keymap file.
+
+You can see and download keymaps for: [Windows](examples/keymap_win.edn), [MacOS](examples/keymap_macos.edn) and [Linux](examples/keymap_linux.edn)
+
 ## Editor logs
 If you run into a problem with the editor and need to [report an issue](/manuals/getting-help/#getting-help) it is a good idea to provide log files from the editor itself. The editor logs files can be found here:
 

+ 102 - 0
docs/en/manuals/examples/keymap_linux.edn

@@ -0,0 +1,102 @@
+[["A" :add]
+ ["Alt+Down" :move-down]
+ ["Alt+Up" :move-up]
+ ["Backspace" :delete-backward]
+ ["Ctrl+'+'" :zoom-in]
+ ["Ctrl+'-'" :zoom-out]
+ ["Ctrl+A" :select-all]
+ ["Ctrl+B" :build]
+ ["Ctrl+Backspace" :delete-prev-word]
+ ["Ctrl+C" :copy]
+ ["Ctrl+Comma" :preferences]
+ ["Ctrl+D" :select-next-occurrence]
+ ["Ctrl+Delete" :delete-next-word]
+ ["Ctrl+E" :hide-selected]
+ ["Ctrl+End" :end-of-file]
+ ["Ctrl+F" :filter-form]
+ ["Ctrl+F" :find-text]
+ ["Ctrl+G" :find-next]
+ ["Ctrl+H" :replace-text]
+ ["Ctrl+H" :toggle-component-guides]
+ ["Ctrl+Home" :beginning-of-file]
+ ["Ctrl+I" :reindent]
+ ["Ctrl+K" :delete-to-end-of-line]
+ ["Ctrl+L" :goto-line]
+ ["Ctrl+Left" :prev-word]
+ ["Ctrl+N" :new-file]
+ ["Ctrl+O" :open]
+ ["Ctrl+P" :open-asset]
+ ["Ctrl+Q" :quit]
+ ["Ctrl+R" :hot-reload]
+ ["Ctrl+Right" :next-word]
+ ["Ctrl+S" :save-all]
+ ["Ctrl+Slash" :toggle-comment]
+ ["Ctrl+Space" :proposals]
+ ["Ctrl+T" :scene-stop]
+ ["Ctrl+U" :rebundle]
+ ["Ctrl+V" :paste]
+ ["Ctrl+W" :close]
+ ["Ctrl+X" :cut]
+ ["Ctrl+Z" :undo]
+ ["Delete" :delete]
+ ["Down" :down]
+ ["E" :rotate-tool]
+ ["End" :end-of-line]
+ ["Enter" :enter]
+ ["Esc" :escape]
+ ["F" :frame-selection]
+ ["F1" :documentation]
+ ["F10" :step-over]
+ ["F11" :step-into]
+ ["F2" :rename]
+ ["F5" :start-debugger]
+ ["F5" :continue]
+ ["F6" :toggle-pane-left]
+ ["F7" :toggle-pane-bottom]
+ ["F8" :toggle-pane-right]
+ ["F9" :toggle-breakpoint]
+ ["Home" :beginning-of-line-text]
+ ["Left" :left]
+ ["Page Down" :page-down]
+ ["Page Up" :page-up]
+ ["Period" :realign-camera]
+ ["R" :scale-tool]
+ ["Right" :right]
+ ["Shift+A" :add-secondary]
+ ["Shift+Backspace" :delete-backward]
+ ["Shift+Ctrl+B" :rebuild]
+ ["Shift+Ctrl+Delete" :delete-to-end-of-line]
+ ["Shift+Ctrl+E" :show-last-hidden]
+ ["Shift+Ctrl+End" :select-end-of-file]
+ ["Shift+Ctrl+F" :search-in-files]
+ ["Shift+Ctrl+G" :find-prev]
+ ["Shift+Ctrl+H" :replace-next]
+ ["Shift+Ctrl+Home" :select-beginning-of-file]
+ ["Shift+Ctrl+I" :toggle-visibility-filters]
+ ["Shift+Ctrl+L" :split-selection-into-lines]
+ ["Shift+Ctrl+Left" :select-prev-word]
+ ["Shift+Ctrl+R" :open-asset]
+ ["Shift+Ctrl+Right" :select-next-word]
+ ["Shift+Ctrl+W" :close-all]
+ ["Shift+Ctrl+Z" :redo]
+ ["Shift+Down" :down-major]
+ ["Shift+Down" :select-down]
+ ["Shift+E" :erase-tool]
+ ["Shift+End" :select-end-of-line]
+ ["Shift+F11" :step-out]
+ ["Shift+F5" :stop-debugger]
+ ["Shift+Home" :select-beginning-of-line-text]
+ ["Shift+Left" :left-major]
+ ["Shift+Left" :select-left]
+ ["Shift+Page Down" :select-page-down]
+ ["Shift+Page Up" :select-page-up]
+ ["Shift+Right" :right-major]
+ ["Shift+Right" :select-right]
+ ["Shift+Tab" :backwards-tab-trigger]
+ ["Shift+Up" :select-up]
+ ["Shift+Up" :up-major]
+ ["Space" :scene-play]
+ ["Space" :show-palette]
+ ["Tab" :tab]
+ ["Up" :up]
+ ["W" :move-tool]]

+ 119 - 0
docs/en/manuals/examples/keymap_macos.edn

@@ -0,0 +1,119 @@
+[["A" :add]
+ ["Alt+Backspace" :delete-prev-word]
+ ["Alt+Delete" :delete-next-word]
+ ["Alt+Down" :end-of-line]
+ ["Alt+Down" :move-down]
+ ["Alt+Left" :prev-word]
+ ["Alt+Meta+E" :select-next-occurrence]
+ ["Alt+Meta+F" :replace-text]
+ ["Alt+Meta+G" :replace-next]
+ ["Alt+Right" :next-word]
+ ["Alt+Up" :beginning-of-line]
+ ["Alt+Up" :move-up]
+ ["Backspace" :delete-backward]
+ ["Ctrl+A" :beginning-of-line]
+ ["Ctrl+D" :delete-line]
+ ["Ctrl+E" :end-of-line]
+ ["Ctrl+I" :reindent]
+ ["Ctrl+K" :delete-to-end-of-line]
+ ["Ctrl+Meta+H" :toggle-component-guides]
+ ["Ctrl+R" :reload-stylesheet]
+ ["Ctrl+Space" :proposals]
+ ["Delete" :delete]
+ ["Down" :down]
+ ["E" :rotate-tool]
+ ["End" :end-of-line]
+ ["Enter" :enter]
+ ["Esc" :escape]
+ ["F" :frame-selection]
+ ["F1" :documentation]
+ ["F10" :step-over]
+ ["F11" :step-into]
+ ["F2" :rename]
+ ["F5" :start-debugger]
+ ["F5" :continue]
+ ["F6" :toggle-pane-left]
+ ["F7" :toggle-pane-bottom]
+ ["F8" :toggle-pane-right]
+ ["F9" :toggle-breakpoint]
+ ["Home" :beginning-of-line-text]
+ ["Left" :left]
+ ["Meta+'+'" :zoom-in]
+ ["Meta+'-'" :zoom-out]
+ ["Meta+A" :select-all]
+ ["Meta+B" :build]
+ ["Meta+C" :copy]
+ ["Meta+Comma" :preferences]
+ ["Meta+D" :select-next-occurrence]
+ ["Meta+Delete" :delete-to-end-of-line]
+ ["Meta+Down" :end-of-file]
+ ["Meta+E" :hide-selected]
+ ["Meta+F" :filter-form]
+ ["Meta+F" :find-text]
+ ["Meta+G" :find-next]
+ ["Meta+L" :goto-line]
+ ["Meta+Left" :beginning-of-line-text]
+ ["Meta+N" :new-file]
+ ["Meta+O" :open]
+ ["Meta+P" :open-asset]
+ ["Meta+Q" :quit]
+ ["Meta+R" :hot-reload]
+ ["Meta+Right" :end-of-line]
+ ["Meta+S" :save-all]
+ ["Meta+Slash" :toggle-comment]
+ ["Meta+T" :scene-stop]
+ ["Meta+U" :rebundle]
+ ["Meta+Up" :beginning-of-file]
+ ["Meta+V" :paste]
+ ["Meta+W" :close]
+ ["Meta+X" :cut]
+ ["Meta+Z" :undo]
+ ["Page Down" :page-down]
+ ["Page Up" :page-up]
+ ["Period" :realign-camera]
+ ["R" :scale-tool]
+ ["Right" :right]
+ ["Shift+A" :add-secondary]
+ ["Shift+Alt+Down" :select-end-of-line]
+ ["Shift+Alt+Left" :select-prev-word]
+ ["Shift+Alt+Right" :select-next-word]
+ ["Shift+Alt+Up" :select-beginning-of-line]
+ ["Shift+Backspace" :delete-backward]
+ ["Shift+Ctrl+A" :select-beginning-of-line]
+ ["Shift+Ctrl+E" :select-end-of-line]
+ ["Shift+Ctrl+Left" :select-prev-word]
+ ["Shift+Ctrl+Right" :select-next-word]
+ ["Shift+Down" :down-major]
+ ["Shift+Down" :select-down]
+ ["Shift+E" :erase-tool]
+ ["Shift+End" :select-end-of-line]
+ ["Shift+F11" :step-out]
+ ["Shift+Home" :select-beginning-of-line-text]
+ ["Shift+Left" :left-major]
+ ["Shift+Left" :select-left]
+ ["Shift+Meta+B" :rebuild]
+ ["Shift+Meta+Delete" :delete-to-end-of-line]
+ ["Shift+Meta+Down" :select-end-of-file]
+ ["Shift+Meta+E" :show-last-hidden]
+ ["Shift+Meta+F" :search-in-files]
+ ["Shift+Meta+G" :find-prev]
+ ["Shift+Meta+I" :toggle-visibility-filters]
+ ["Shift+Meta+L" :split-selection-into-lines]
+ ["Shift+Meta+Left" :select-beginning-of-line-text]
+ ["Shift+Meta+R" :open-asset]
+ ["Shift+Meta+Right" :select-end-of-line]
+ ["Shift+Meta+Up" :select-beginning-of-file]
+ ["Shift+Meta+W" :close-all]
+ ["Shift+Meta+Z" :redo]
+ ["Shift+Page Down" :select-page-down]
+ ["Shift+Page Up" :select-page-up]
+ ["Shift+Right" :right-major]
+ ["Shift+Right" :select-right]
+ ["Shift+Tab" :backwards-tab-trigger]
+ ["Shift+Up" :select-up]
+ ["Shift+Up" :up-major]
+ ["Space" :scene-play]
+ ["Space" :show-palette]
+ ["Tab" :tab]
+ ["Up" :up]
+ ["W" :move-tool]]

+ 102 - 0
docs/en/manuals/examples/keymap_win.edn

@@ -0,0 +1,102 @@
+[["A" :add]
+ ["Alt+Down" :move-down]
+ ["Alt+Up" :move-up]
+ ["Backspace" :delete-backward]
+ ["Ctrl+'+'" :zoom-in]
+ ["Ctrl+'-'" :zoom-out]
+ ["Ctrl+A" :select-all]
+ ["Ctrl+B" :build]
+ ["Ctrl+Backspace" :delete-prev-word]
+ ["Ctrl+C" :copy]
+ ["Ctrl+Comma" :preferences]
+ ["Ctrl+D" :select-next-occurrence]
+ ["Ctrl+Delete" :delete-next-word]
+ ["Ctrl+E" :hide-selected]
+ ["Ctrl+End" :end-of-file]
+ ["Ctrl+F" :filter-form]
+ ["Ctrl+F" :find-text]
+ ["Ctrl+G" :find-next]
+ ["Ctrl+H" :replace-text]
+ ["Ctrl+H" :toggle-component-guides]
+ ["Ctrl+Home" :beginning-of-file]
+ ["Ctrl+I" :reindent]
+ ["Ctrl+K" :delete-to-end-of-line]
+ ["Ctrl+L" :goto-line]
+ ["Ctrl+Left" :prev-word]
+ ["Ctrl+N" :new-file]
+ ["Ctrl+O" :open]
+ ["Ctrl+P" :open-asset]
+ ["Ctrl+Q" :quit]
+ ["Ctrl+R" :hot-reload]
+ ["Ctrl+Right" :next-word]
+ ["Ctrl+S" :save-all]
+ ["Ctrl+Slash" :toggle-comment]
+ ["Ctrl+Space" :proposals]
+ ["Ctrl+T" :scene-stop]
+ ["Ctrl+U" :rebundle]
+ ["Ctrl+V" :paste]
+ ["Ctrl+W" :close]
+ ["Ctrl+X" :cut]
+ ["Ctrl+Z" :undo]
+ ["Delete" :delete]
+ ["Down" :down]
+ ["E" :rotate-tool]
+ ["End" :end-of-line]
+ ["Enter" :enter]
+ ["Esc" :escape]
+ ["F" :frame-selection]
+ ["F1" :documentation]
+ ["F10" :step-over]
+ ["F11" :step-into]
+ ["F2" :rename]
+ ["F5" :start-debugger]
+ ["F5" :continue]
+ ["F6" :toggle-pane-left]
+ ["F7" :toggle-pane-bottom]
+ ["F8" :toggle-pane-right]
+ ["F9" :toggle-breakpoint]
+ ["Home" :beginning-of-line-text]
+ ["Left" :left]
+ ["Page Down" :page-down]
+ ["Page Up" :page-up]
+ ["Period" :realign-camera]
+ ["R" :scale-tool]
+ ["Right" :right]
+ ["Shift+A" :add-secondary]
+ ["Shift+Backspace" :delete-backward]
+ ["Shift+Ctrl+B" :rebuild]
+ ["Shift+Ctrl+Delete" :delete-to-end-of-line]
+ ["Shift+Ctrl+E" :show-last-hidden]
+ ["Shift+Ctrl+End" :select-end-of-file]
+ ["Shift+Ctrl+F" :search-in-files]
+ ["Shift+Ctrl+G" :find-prev]
+ ["Shift+Ctrl+H" :replace-next]
+ ["Shift+Ctrl+Home" :select-beginning-of-file]
+ ["Shift+Ctrl+I" :toggle-visibility-filters]
+ ["Shift+Ctrl+L" :split-selection-into-lines]
+ ["Shift+Ctrl+Left" :select-prev-word]
+ ["Shift+Ctrl+R" :open-asset]
+ ["Shift+Ctrl+Right" :select-next-word]
+ ["Shift+Ctrl+W" :close-all]
+ ["Shift+Ctrl+Z" :redo]
+ ["Shift+Down" :down-major]
+ ["Shift+Down" :select-down]
+ ["Shift+E" :erase-tool]
+ ["Shift+End" :select-end-of-line]
+ ["Shift+F11" :step-out]
+ ["Shift+F5" :stop-debugger]
+ ["Shift+Home" :select-beginning-of-line-text]
+ ["Shift+Left" :left-major]
+ ["Shift+Left" :select-left]
+ ["Shift+Page Down" :select-page-down]
+ ["Shift+Page Up" :select-page-up]
+ ["Shift+Right" :right-major]
+ ["Shift+Right" :select-right]
+ ["Shift+Tab" :backwards-tab-trigger]
+ ["Shift+Up" :select-up]
+ ["Shift+Up" :up-major]
+ ["Space" :scene-play]
+ ["Space" :show-palette]
+ ["Tab" :tab]
+ ["Up" :up]
+ ["W" :move-tool]]