diff --git a/accessible.c b/accessible.c index 161258e..8d004bc 100644 --- a/accessible.c +++ b/accessible.c @@ -37,7 +37,7 @@ #include #include -// #include + #include #include "v3270.h" #include "private.h" #include "accessible.h" diff --git a/keyboard.c b/keyboard.c index 6fe3087..2df394d 100644 --- a/keyboard.c +++ b/keyboard.c @@ -33,6 +33,7 @@ #include #include #include + #include #include #include #include @@ -138,6 +139,9 @@ if(event->keyval >= GDK_F1 && event->keyval <= GDK_F12 && !(state & (GDK_CONTROL_MASK|GDK_ALT_MASK))) { int pfcode = (event->keyval - GDK_F1) + ((state & GDK_SHIFT_MASK) ? 13 : 1); + + trace("PF%02d",pfcode); + if(pfcode > 0 && pfcode < 25) { lib3270_pfkey(widget->host,pfcode); diff --git a/mouse.c b/mouse.c index 1318739..251bf3b 100644 --- a/mouse.c +++ b/mouse.c @@ -34,6 +34,7 @@ #include "private.h" #include #include + #include /*--[ Implement ]------------------------------------------------------------------------------------*/ diff --git a/oia.c b/oia.c index 362bd1b..237d8ae 100644 --- a/oia.c +++ b/oia.c @@ -30,6 +30,7 @@ #include #include #include + #include #include #include #include diff --git a/selection.c b/selection.c index eb43973..8fbad4a 100644 --- a/selection.c +++ b/selection.c @@ -29,10 +29,10 @@ #include #include -// #include #include "v3270.h" #include "private.h" #include + #include /*--[ Globals ]--------------------------------------------------------------------------------------*/ @@ -52,7 +52,6 @@ static void clipboard_clear(GtkClipboard *clipboard, GObject *obj) { trace("%s widget=%p",__FUNCTION__,obj); - } static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, guint target, GObject *obj) diff --git a/widget.c b/widget.c index 4ab2d2d..a157dbe 100644 --- a/widget.c +++ b/widget.c @@ -39,6 +39,12 @@ #include "accessible.h" #include "marshal.h" +#if GTK_CHECK_VERSION(3,0,0) + #include +#else + #include +#endif + #define WIDTH_IN_PIXELS(terminal,x) (x * cols) #define HEIGHT_IN_PIXELS(terminal,x) (x * (rows+1)) @@ -264,6 +270,10 @@ static void v3270_class_init(v3270Class *klass) { GObjectClass * gobject_class = G_OBJECT_CLASS(klass); GtkWidgetClass * widget_class = GTK_WIDGET_CLASS(klass); + GtkBindingSet * binding = gtk_binding_set_by_class(klass); + + // Setup widget key bindings + gtk_binding_entry_skip(binding,GDK_F10,0); lib3270_set_log_handler(loghandler); -- libgit2 0.21.2