Revision: 1371 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1371&view=re... Author: sheckley Date: 2010-05-21 08:16:50 +0000 (Fri, 21 May 2010)
Log Message: ----------- Handle the Ctrl-(Alt)-Shift-Keypad keys.
Modified Paths: -------------- trunk/geany-plugins/geanyextrasel/ChangeLog trunk/geany-plugins/geanyextrasel/src/extrasel.c
Modified: trunk/geany-plugins/geanyextrasel/ChangeLog =================================================================== --- trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-20 21:20:14 UTC (rev 1370) +++ trunk/geany-plugins/geanyextrasel/ChangeLog 2010-05-21 08:16:50 UTC (rev 1371) @@ -1 +1,4 @@ +2010-05-21 Dimitar Zhekov hamster@mbox.contact.bg
+ * src/extrasel.c: + Handle the Ctrl-(Alt)-Shift-Keypad keys.
Modified: trunk/geany-plugins/geanyextrasel/src/extrasel.c =================================================================== --- trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-20 21:20:14 UTC (rev 1370) +++ trunk/geany-plugins/geanyextrasel/src/extrasel.c 2010-05-21 08:16:50 UTC (rev 1371) @@ -51,18 +51,19 @@ typedef struct _command_key { guint key; + guint keypad; gint command; } command_key;
static const command_key command_keys[] = { - { GDK_Left, SCI_WORDLEFT }, - { GDK_Right, SCI_WORDRIGHTEND }, - { GDK_Home, SCI_DOCUMENTSTART }, - { GDK_End, SCI_DOCUMENTEND }, - { GDK_Up, SCI_PARAUP }, - { GDK_Down, SCI_PARADOWN }, - { 0, 0 } + { GDK_Left, GDK_KP_Left, SCI_WORDLEFT }, + { GDK_Right, GDK_KP_Right, SCI_WORDRIGHTEND }, + { GDK_Home, GDK_KP_Home, SCI_DOCUMENTSTART }, + { GDK_End, GDK_KP_End, SCI_DOCUMENTEND }, + { GDK_Up, GDK_KP_Up, SCI_PARAUP }, + { GDK_Down, GDK_KP_Down, SCI_PARADOWN }, + { 0, 0, 0 } };
/* not #defined in 0.18 */ @@ -94,7 +95,7 @@
for (ck = command_keys; ck->key; ck++) { - if (event->keyval == ck->key) + if (event->keyval == ck->key || event->keyval == ck->keypad) { GeanyDocument *doc = document_get_current();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org