X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fioncore_bindings.lua;h=aa52c74ff5ac436ae413132fe238a7e8fb434edf;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=ec03dddd2f6fd141cf526adb90bd27eb8208a4ef;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/ioncore/ioncore_bindings.lua b/ioncore/ioncore_bindings.lua index ec03ddd..aa52c74 100644 --- a/ioncore/ioncore_bindings.lua +++ b/ioncore/ioncore_bindings.lua @@ -3,10 +3,7 @@ -- -- Copyright (c) Tuomo Valkonen 2004-2007. -- --- Ion is free software; you can redistribute it and/or modify it under --- the terms of the GNU Lesser General Public License as published by --- the Free Software Foundation; either version 2.1 of the License, or --- (at your option) any later version. +-- See the included file LICENSE for details. -- local ioncore=_G.ioncore @@ -140,6 +137,24 @@ function ioncore.kpress_wait(keyspec, cmd, guard) return putcmd(cmd, guard, {action = "kpress_wait", kcb = keyspec}) end +--DOC +-- Submap enter event for bindings. +function ioncore.submap_enter(cmd, guard) + return putcmd(cmd, guard, {action = "submap_enter"}) +end + +--DOC +-- Submap modifier release event for bindings. +function ioncore.submap_wait(cmd, guard) + return putcmd(cmd, guard, {action = "submap_wait"}) +end + +-- DOC +-- Submap leave event for bindings. +--function ioncore.submap_leave(cmd, guard) +-- return putcmd(cmd, guard, {action = "submap_leave"}) +--end + local function mact(act_, kcb_, cmd, guard) local st, en, kcb2_, area_=string.find(kcb_, "([^@]*)@(.*)") return putcmd(cmd, guard, {