fix(greenhouse): add enter bind to goto page on table of contents

pull/240/head
sammyette 2023-10-24 23:38:19 -04:00
parent 264043dc1e
commit 554fb009f8
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ function Greenhouse:new(sink)
['Ctrl-Left'] = self.previous, ['Ctrl-Left'] = self.previous,
['Ctrl-Right'] = self.next, ['Ctrl-Right'] = self.next,
['Ctrl-N'] = function(self) self:toc(true) end, ['Ctrl-N'] = function(self) self:toc(true) end,
['Enter'] = function(self)
if self.isSpecial then
self:jump(self.specialPageIdx)
self:special(false)
end
end
} }
self.isSpecial = false self.isSpecial = false
self.specialPage = nil self.specialPage = nil