From 83c20c89439386f31050718c94551d863298cdb9 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 25 Oct 2014 00:30:36 -0400 Subject: Improvements to terminal mouse handling. Emit events for unhandled mouse events and connect to such events in order to focus and resize views. Patch libtermkey with new Win32 PDCurses driver for unified key/mouse input. Update CDK patch to always use libtermkey and to ignore mouse events. Requires Scinterm r97 (changeset 8d1a625c9b4d). Thanks to Chris Emerson for proof of concept code that handles mouse events and for the code that focuses and resizes views. --- properties.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'properties.lua') diff --git a/properties.lua b/properties.lua index 43bc5d30..55ad116d 100644 --- a/properties.lua +++ b/properties.lua @@ -8,9 +8,11 @@ buffer.additional_selection_typing = true --buffer.multi_paste = buffer.MULTIPASTE_EACH --buffer.virtual_space_options = buffer.VS_RECTANGULARSELECTION + -- buffer.VS_USERACCESSIBLE -buffer.rectangular_selection_modifier = (WIN32 or OSX) and buffer.MOD_ALT or - buffer.MOD_SUPER --- Note: rectangular selection modifier for CURSES is always ctrl + alt. +if not CURSES then + -- Note: Always Ctrl+Alt on non-Win32 curses and always Alt on Win32 curses. + buffer.rectangular_selection_modifier = (WIN32 or OSX) and buffer.MOD_ALT or + buffer.MOD_SUPER +end --buffer.additional_carets_blink = false --buffer.additional_carets_visible = false -- cgit v1.2.3