Author: Yu Chen <[email protected]>
Date:   Thu Mar 29 03:16:36 2012 +0800

After hiden toolbar, set the focus to scrolledwindow(preview content)
so that toolbar can be call back with the accelerator key.

---

 synfig-studio/src/gui/preview.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/synfig-studio/src/gui/preview.cpp 
b/synfig-studio/src/gui/preview.cpp
index 1ffb05c..61bb5a7 100644
--- a/synfig-studio/src/gui/preview.cpp
+++ b/synfig-studio/src/gui/preview.cpp
@@ -1080,12 +1080,16 @@ void Widget_Preview::hide_controller()
 {
        controller->hide();
        controllerisshown = 0;
+
+       preview_window.grab_focus();
 }
 
 void Widget_Preview::show_controller()
 {
        controller->show();
        controllerisshown = 1;
+
+       controller->grab_focus();
 }
 
 //shortcut keys TODO: customizable shortcut keys would be awesome.


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to