| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | # Accelerator
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-23 17:55:57 +01:00
										 |  |  | An accelerator is a string that represents a keyboard shortcut. It can contain | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | multiple modifiers and key codes, combined by the `+` character. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Examples: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `Command+A` | 
					
						
							|  |  |  | * `Ctrl+Shift+Z` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Platform notice
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-23 17:55:57 +01:00
										 |  |  | On Linux and Windows, the `Command` key does not have any effect so | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | use `CommandOrControl` which represents `Command` on OS X and `Control` on | 
					
						
							|  |  |  | Linux and Windows to define some accelerators. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-24 07:19:43 +01:00
										 |  |  | The `Super` key is mapped to the `Windows` key on Windows and Linux and | 
					
						
							| 
									
										
										
										
											2015-04-28 13:28:18 +08:00
										 |  |  | `Cmd` on OS X. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | ## Available modifiers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `Command` (or `Cmd` for short) | 
					
						
							|  |  |  | * `Control` (or `Ctrl` for short) | 
					
						
							|  |  |  | * `CommandOrControl` (or `CmdOrCtrl` for short) | 
					
						
							|  |  |  | * `Alt` | 
					
						
							| 
									
										
										
										
											2016-03-06 15:12:04 +09:00
										 |  |  | * `Option` | 
					
						
							|  |  |  | * `AltGr` | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | * `Shift` | 
					
						
							| 
									
										
										
										
											2015-04-28 13:28:18 +08:00
										 |  |  | * `Super` | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Available key codes
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `0` to `9` | 
					
						
							|  |  |  | * `A` to `Z` | 
					
						
							|  |  |  | * `F1` to `F24` | 
					
						
							|  |  |  | * Punctuations like `~`, `!`, `@`, `#`, `$`, etc. | 
					
						
							| 
									
										
										
										
											2015-01-23 15:26:54 -08:00
										 |  |  | * `Plus` | 
					
						
							| 
									
										
										
										
											2014-08-05 00:00:39 +08:00
										 |  |  | * `Space` | 
					
						
							|  |  |  | * `Backspace` | 
					
						
							|  |  |  | * `Delete` | 
					
						
							|  |  |  | * `Insert` | 
					
						
							|  |  |  | * `Return` (or `Enter` as alias) | 
					
						
							|  |  |  | * `Up`, `Down`, `Left` and `Right` | 
					
						
							|  |  |  | * `Home` and `End` | 
					
						
							|  |  |  | * `PageUp` and `PageDown` | 
					
						
							|  |  |  | * `Escape` (or `Esc` for short) | 
					
						
							|  |  |  | * `VolumeUp`, `VolumeDown` and `VolumeMute` | 
					
						
							|  |  |  | * `MediaNextTrack`, `MediaPreviousTrack`, `MediaStop` and `MediaPlayPause` | 
					
						
							| 
									
										
										
										
											2016-03-06 15:12:04 +09:00
										 |  |  | * `PrintScreen` |