only toggle debugs on down, not also on up

Change-Id: I6eb7dfd60ca855a9d4b939f4fd186e7037a1a3b4
This commit is contained in:
Caolán McNamara
2017-03-20 12:48:02 +00:00
parent ffeb6227ae
commit 66067b845b

View File

@@ -388,24 +388,27 @@ void GtkSalFrame::doKeyCallback( guint state,
vcl::DeletionListener aDel( this ); vcl::DeletionListener aDel( this );
#if 0 #if 0
// shift-zero forces a re-draw and event is swallowed if (bDown)
if (keyval == GDK_KEY_0)
{ {
fprintf( stderr, "force widget_queue_draw\n"); // shift-zero forces a re-draw and event is swallowed
gtk_widget_queue_draw(GTK_WIDGET(m_pFixedContainer)); if (keyval == GDK_KEY_0)
return; {
} fprintf( stderr, "force widget_queue_draw\n");
else if (keyval == GDK_KEY_1) gtk_widget_queue_draw(GTK_WIDGET(m_pFixedContainer));
{ return;
fprintf( stderr, "force repaint all\n"); }
TriggerPaintEvent(); else if (keyval == GDK_KEY_1)
return; {
} fprintf( stderr, "force repaint all\n");
else if (keyval == GDK_KEY_2) TriggerPaintEvent();
{ return;
dumpframes = !dumpframes; }
fprintf(stderr, "toggle dump frames to %d\n", dumpframes); else if (keyval == GDK_KEY_2)
return; {
dumpframes = !dumpframes;
fprintf(stderr, "toggle dump frames to %d\n", dumpframes);
return;
}
} }
#endif #endif
@@ -453,7 +456,7 @@ void GtkSalFrame::doKeyCallback( guint state,
aEvent.mnCode |= GetKeyModCode( state ); aEvent.mnCode |= GetKeyModCode( state );
if( bDown ) if (bDown)
{ {
bool bHandled = CallCallbackExc( SalEvent::KeyInput, &aEvent ); bool bHandled = CallCallbackExc( SalEvent::KeyInput, &aEvent );
// #i46889# copy AlternateKeyCode handling from generic plugin // #i46889# copy AlternateKeyCode handling from generic plugin