better startup

This commit is contained in:
kepler155c@gmail.com
2017-09-26 01:40:02 -04:00
parent 1c3e4917da
commit 2d93974e6a
5 changed files with 48 additions and 29 deletions

View File

@@ -134,6 +134,7 @@ local page = UI.Page {
accelerators = {
r = 'refresh',
e = 'edit',
f = 'files',
s = 'shell',
l = 'lua',
[ 'control-l' ] = 'refresh',
@@ -337,6 +338,12 @@ function page:eventHandler(event)
focused = true,
})
elseif event.type == 'files' then
multishell.openTab({
path = 'sys/apps/Files.lua',
focused = true,
})
elseif event.type == 'focus_change' then
if event.focused.parent.UIElement == 'Icon' then
event.focused.parent:scrollIntoView()