Added in clicks to keymap.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 09bf8bab2f
commit 612818ca05
5 changed files with 36 additions and 35 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ local config = require "core.config"
local style = require "core.style"
local common = require "core.common"
local Object = require "core.object"
local keymap = require "core.keymap"
local View = Object:extend()
@@ -81,6 +81,7 @@ function View:on_mouse_pressed(button, x, y, clicks)
self.dragging_scrollbar = true
return true
end
return keymap.on_key_pressed(button:sub(1,1) .. "click", x, y, clicks)
end