We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8b5376 commit 8d11c34Copy full SHA for 8d11c34
index.html
@@ -2296,6 +2296,22 @@
2296
loadPerson();
2297
aAllSearchTypes = getAllSearchTypes();
2298
document.getElementById( 'searchText' ).focus();
2299
+
2300
2301
+ document.body.addEventListener('keydown', function(e) {
2302
+ if (e.key === "Escape") {
2303
+ cancelSearch();
2304
+ }
2305
+ });
2306
2307
2308
+ function cancelSearch()
2309
+ {
2310
+ document.getElementById( 'searchText' ).value = '';
2311
+ document.getElementById( 'searchResults' ).innerHTML = '';
2312
+ document.getElementById( 'searchResults' ).style.display = 'none';
2313
+ document.getElementById( 'searchText' ).focus();
2314
+ loadPerson( sCurrentPersonId);
2315
}
2316
2317
function getAllSearchTypes()
0 commit comments