Skip to content

Commit

Permalink
Find: Restore focus after the find frame closes - fixes #805
Browse files Browse the repository at this point in the history
rn=

(integrated from master branch change 9.2.1-673-g66e03f5 by Nathan Rijksen <n.rijksen@gmail.com>)
  • Loading branch information
Naatan committed Nov 6, 2015
1 parent 997a1ff commit 9a27482
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chrome/komodo/content/find/find2.p.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,10 @@ function updateWrapperHeight(repeat=true)
function closeFindFrame()
{
opener.document.getElementById("findReplaceWrap").setAttribute("collapsed", "true");

var editor = require("ko/editor");
var scintilla = editor.scintilla();
if (scintilla) scintilla.focus();
}

window.addEventListener("resize", updateWrapperHeight);
Expand Down

0 comments on commit 9a27482

Please sign in to comment.