From 2835799ac0581f667c9ef9b66fe2b155a5348ae5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 22 Aug 2020 16:34:47 -0400 Subject: Added `ui.command_entry.active` and fixed bugs in `events.KEYPRESS` handlers. --- modules/textadept/command_entry.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/textadept/command_entry.lua') diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index db26b8f2..8033b48c 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -10,6 +10,8 @@ local M = ui.command_entry -- running Lua code and filtering text through shell commands) and history. -- @field height (number) -- The height in pixels of the command entry. +-- @field active (boolean) +-- Whether or not the command entry is active. module('ui.command_entry')]] -- Command history per mode. @@ -237,6 +239,7 @@ end local orig_focus = M.focus M.focus = function() keys.mode = prev_key_mode + M.active = not M.active orig_focus() end -- cgit v1.2.3