Fix right alt modifier (alt gr) switching tabs (?)

This commit is contained in:
lemon-sherbet 2019-12-29 12:12:14 +01:00
parent 194187288f
commit 03cabea911
2 changed files with 1 additions and 6 deletions

View File

@ -300,11 +300,6 @@ end
function DocView:update()
-- clamp to view bounds
local max_scroll = math.max(0, self:get_scrollable_size() - self.size.y)
self.scroll.y = math.min(max_scroll, self.scroll.y)
self.scroll.to.y = math.max(0, math.min(max_scroll, self.scroll.to.y))
-- scroll to make caret visible and reset blink timer if it moved
local line, col = self.doc:get_selection()
if (line ~= self.last_line or col ~= self.last_col) and self.size.x > 0 then

View File

@ -6,7 +6,7 @@ keymap.map = {}
keymap.reverse_map = {}
local modkeys = { "ctrl", "alt", "shift" }
local modkeys = { "ctrl", "left alt", "shift" }
local function modkey(key)
for _, k in ipairs(modkeys) do