]> git.lyx.org Git - features.git/commitdiff
close floating dock widgets (not currently docked) with escape keypress event
authorStephan Witt <switt@lyx.org>
Thu, 29 Sep 2011 18:52:36 +0000 (18:52 +0000)
committerStephan Witt <switt@lyx.org>
Thu, 29 Sep 2011 18:52:36 +0000 (18:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39787 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/DockView.h

index 1024bb50fd6636d1ff34a5079abb7b5cc488eb90..d71b75b0fcb488643b93bc9165ebba477f1c9b8b 100644 (file)
@@ -62,6 +62,8 @@ public:
                        }
                        mw->activateWindow();
                        mw->setFocus();
+                       if (isFloating())
+                               hide();
                        ev->accept();
                }
        }