From db3130f911afea6f4d854db0f7dc667a9004a2fc Mon Sep 17 00:00:00 2001 From: Andrey Grinenko Date: Mon, 16 Feb 2015 14:01:11 +0300 Subject: [PATCH] when Ctrl-F - select text in find text input in order to make user able to enter new text right away, without need to remove old text first --- lib/ice-coder.js | 4 +++- lib/ice-coder.min.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index f186327..7fad030 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -3105,7 +3105,9 @@ var ICEcoder = { // CTRL/Cmd+F (Find) } else if(key==70 && (evt.ctrlKey||top.ICEcoder.cmdKey)) { - top.get('find').focus(); + var find = top.get('find'); + find.select(); + find.focus(); return false; // CTRL/Cmd+G (Go to line) diff --git a/lib/ice-coder.min.js b/lib/ice-coder.min.js index 17fe071..d645ebd 100644 --- a/lib/ice-coder.min.js +++ b/lib/ice-coder.min.js @@ -142,9 +142,9 @@ c).style.zIndex=1},150);if(top.ICEcoder.thisLeft&&!1!==top.ICEcoder.thisLeft){b= 0;e