GUI -- TopoView - Reimplemented (most of) the ESCAPE key handling.
Change-Id: I4d05a3107e68e75aad47adb6c4ef6a7ca74ba82b
diff --git a/web/gui/src/main/webapp/app/fw/util/keys.js b/web/gui/src/main/webapp/app/fw/util/keys.js
index 81d0bc3..46a98cb 100644
--- a/web/gui/src/main/webapp/app/fw/util/keys.js
+++ b/web/gui/src/main/webapp/app/fw/util/keys.js
@@ -119,19 +119,14 @@
return true;
}
+ // returns true if we 'consumed' the ESC keypress, false otherwise
function escapeKey(view, key, code, ev) {
- // TODO: plumb in handling of alerts and quick help dismissal
- // We will delegate to the Alert / QuickHelp Services as appropriate.
+ // TODO: plumb in handling of quick help dismissal
/*
- if (alerts.open) {
- closeAlerts();
- return true;
- }
- if (libApi.quickHelp.hide()) {
+ if (qh.hide()) {
return true;
}
*/
- console.log('ESCAPE');
return false;
}