milo: override control-a for stack

This commit is contained in:
kepler155c@gmail.com
2019-03-30 21:43:50 -04:00
parent e9faa553c3
commit 5fb22a2637
2 changed files with 3 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ local localName
print('detecting wired modem connected to furnaces...')
for _, dev in pairs(device) do
if dev.type == 'wired_modem' then
if dev.type == 'wired_modem' and dev.getNameLocal then
local list = dev.getNamesRemote()
furni = { }
localName = dev.getNameLocal()

View File

@@ -60,6 +60,7 @@ local page = UI.Page {
[ 'enter' ] = 'eject',
[ 'up' ] = 'grid_up',
[ 'down' ] = 'grid_down',
[ 'control-a' ] = 'eject_all',
},
},
storageStatus = UI.Text {
@@ -77,6 +78,7 @@ local page = UI.Page {
backgroundFocusColor = colors.black,
accelerators = {
[ 'enter' ] = 'eject_specified',
[ 'control-a' ] = 'eject_all',
},
help = 'Specify an amount to send',
},