[gnome-builder] sourceview: let the completion popover handle alt+0 to alt+9
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: let the completion popover handle alt+0 to alt+9
- Date: Tue, 25 Oct 2016 20:38:25 +0000 (UTC)
commit 8b71e28b096cfea9899430941cad8ec844e53e64
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Oct 25 19:16:48 2016 +0200
sourceview: let the completion popover handle alt+0 to alt+9
libide/sourceview/ide-source-view.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libide/sourceview/ide-source-view.c b/libide/sourceview/ide-source-view.c
index 437e4fe..5a4ea0b 100644
--- a/libide/sourceview/ide-source-view.c
+++ b/libide/sourceview/ide-source-view.c
@@ -2358,6 +2358,13 @@ ide_source_view_key_press_event (GtkWidget *widget,
}
}
+ if (priv->completion_visible && event->state == GDK_MOD1_MASK)
+ {
+ if ((event->keyval >= GDK_KEY_0 && event->keyval <= GDK_KEY_9) ||
+ (event->keyval >= GDK_KEY_KP_0 && event->keyval <= GDK_KEY_KP_9))
+ return TRUE;
+ }
+
/*
* Allow the Input Method Context to potentially filter this keystroke.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]