mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Clear selection by setting cursor if no results
This commit is contained in:
@@ -2683,6 +2683,9 @@ var ICEcoder = {
|
||||
this.content.contentWindow.document.getElementById('resultsBar').innerHTML = "";
|
||||
this.content.contentWindow.document.getElementById('resultsBar').style.display = "none";
|
||||
|
||||
// Clear our selection and so also the match highlights
|
||||
thisCM.setCursor(thisCM.getCursor("anchor"));
|
||||
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
@@ -2724,6 +2727,9 @@ var ICEcoder = {
|
||||
results.innerHTML = "No results";
|
||||
this.content.contentWindow.document.getElementById('resultsBar').innerHTML = "";
|
||||
this.content.contentWindow.document.getElementById('resultsBar').style.display = "none";
|
||||
|
||||
// Clear our selection and so also the match highlights
|
||||
thisCM.setCursor(thisCM.getCursor("anchor"));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user