Author: Carlos Lopez <[email protected]>
Date: Wed Feb 8 19:59:10 2012 +0100
Use more general form for the key value "Escape"
---
synfig-studio/src/gui/dialogs/dialog_preview.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/synfig-studio/src/gui/dialogs/dialog_preview.cpp
b/synfig-studio/src/gui/dialogs/dialog_preview.cpp
index 3f74731..ef48c86 100644
--- a/synfig-studio/src/gui/dialogs/dialog_preview.cpp
+++ b/synfig-studio/src/gui/dialogs/dialog_preview.cpp
@@ -93,7 +93,7 @@ void Dialog_Preview::on_hide()
//press escape key to close window
bool Dialog_Preview::on_key_pressed(GdkEventKey *ev)
{
- if (ev->keyval == GDK_Escape)
+ if (ev->keyval == gdk_keyval_from_name("Escape") )
{
close_window_handler();
return true;
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl