Provide keyboard navigation for base windows menus

This commit is contained in:
Matt Colyer 2013-11-14 10:39:31 -08:00
parent cfab5c619d
commit 1dac1f375c

View File

@ -1,6 +1,6 @@
'menu': [ 'menu': [
{ {
label: 'File' label: '&File'
submenu: [ submenu: [
{ label: 'New Window', command: 'application:new-window' } { label: 'New Window', command: 'application:new-window' }
{ label: 'New File', command: 'application:new-file' } { label: 'New File', command: 'application:new-file' }
@ -22,7 +22,7 @@
} }
{ {
label: 'Edit' label: '&Edit'
submenu: [ submenu: [
{ label: 'Undo', command: 'core:undo' } { label: 'Undo', command: 'core:undo' }
{ label: 'Redo', command: 'core:redo' } { label: 'Redo', command: 'core:redo' }
@ -83,7 +83,7 @@
} }
{ {
label: 'View' label: '&View'
submenu: [ submenu: [
{ label: 'Reload', command: 'window:reload' } { label: 'Reload', command: 'window:reload' }
{ label: 'Toggle Full Screen', command: 'window:toggle-full-screen' } { label: 'Toggle Full Screen', command: 'window:toggle-full-screen' }
@ -102,7 +102,7 @@
} }
{ {
label: 'Selection' label: '&Selection'
submenu: [ submenu: [
{ label: 'Add Selection Above', command: 'editor:add-selection-above' } { label: 'Add Selection Above', command: 'editor:add-selection-above' }
{ label: 'Add Selection Below', command: 'editor:add-selection-below' } { label: 'Add Selection Below', command: 'editor:add-selection-below' }
@ -121,7 +121,7 @@
} }
{ {
label: 'Movement' label: '&Movement'
submenu: [ submenu: [
{ label: 'Move to Top', command: 'core:move-to-top' } { label: 'Move to Top', command: 'core:move-to-top' }
{ label: 'Move to Bottom', command: 'core:move-to-bottom' } { label: 'Move to Bottom', command: 'core:move-to-bottom' }
@ -138,17 +138,17 @@
} }
{ {
label: 'Find' label: 'F&ind'
submenu: [] submenu: []
} }
{ {
label: 'Packages' label: '&Packages'
submenu: [] submenu: []
} }
{ {
label: 'Window' label: '&Window'
submenu: [ submenu: [
{ label: 'Minimize', command: 'application:minimize' } { label: 'Minimize', command: 'application:minimize' }
{ label: 'Zoom', command: 'application:zoom' } { label: 'Zoom', command: 'application:zoom' }
@ -158,7 +158,7 @@
} }
{ {
label: 'Help' label: '&Help'
submenu: [ submenu: [
{ label: 'About Atom', command: 'application:about' } { label: 'About Atom', command: 'application:about' }
{ label: "VERSION", enabled: false } { label: "VERSION", enabled: false }