mirror of https://github.com/Hilbis/Hilbish
fix(greenhouse): add enter bind to goto page on table of contents
parent
264043dc1e
commit
554fb009f8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue