/pidgin/main: 53bac75efc24: cross-win32: finch: support for left...

Tomasz Wasilczyk twasilczyk at pidgin.im
Tue Apr 22 19:33:04 EDT 2014


Changeset: 53bac75efc24c83af250a48edcd99c0116e3713b
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-23 01:32 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/53bac75efc24

Description:

cross-win32: finch: support for left-alt key as escape

diffstat:

 finch/libgnt/gntmain.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (20 lines):

diff --git a/finch/libgnt/gntmain.c b/finch/libgnt/gntmain.c
--- a/finch/libgnt/gntmain.c
+++ b/finch/libgnt/gntmain.c
@@ -269,10 +269,14 @@ io_invoke(GIOChannel *source, GIOConditi
 
 	if (HOLDING_ESCAPE) {
 		is_escape = TRUE;
+		g_source_remove(escape_stuff.timer);
+		escape_stuff.timer = 0;
+	} else if (GetAsyncKeyState(VK_LMENU)) { /* left-ALT key */
+		is_escape = TRUE;
+	}
+	if (is_escape) {
 		*k = '\033';
 		k++;
-		g_source_remove(escape_stuff.timer);
-		escape_stuff.timer = 0;
 	}
 
 	ch = _getwch(); /* we could use _getwch_nolock */



More information about the Commits mailing list