[passepartout] return a proper code to indicate whether the event was handled
- From: Sven Herzberg <herzi src gnome org>
- To: svn-commits-list gnome org
- Subject: [passepartout] return a proper code to indicate whether the event was handled
- Date: Mon, 13 Apr 2009 09:17:25 -0400 (EDT)
commit b6ed994df79a83fea4a59fbf8c883a148e08888e
Author: Sven Herzberg <herzi lanedo com>
Date: Mon Apr 13 00:29:37 2009 +0200
return a proper code to indicate whether the event was handled
* src/pptout/docview.cc: return true if the event was handled and false if now
---
src/pptout/docview.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/pptout/docview.cc b/src/pptout/docview.cc
index 92185d0..ef26c4f 100644
--- a/src/pptout/docview.cc
+++ b/src/pptout/docview.cc
@@ -542,11 +542,15 @@ void DocumentView::end_move(bool revert) {
}
bool DocumentView::on_key_press_event(GdkEventKey* key) {
- if(key->keyval == 65307) { // escape
+ if(key->keyval == GDK_Escape) {
+ bool result = moving || reshaping;
+
if(moving)
end_move(true);
if(reshaping)
end_reshape(true);
+
+ return result;
}
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]