Fix close hotkey overview popup #1833 (#1835)

* Fix close hotkey overview popup

* Add text how to close hotskeys overview
This commit is contained in:
Christian Günter 2018-08-17 13:34:09 +02:00 committed by Lars Hvam
parent d329a2d69f
commit f46e1e1c59
2 changed files with 12 additions and 4 deletions

View File

@ -18,8 +18,8 @@ CLASS zcl_abapgit_gui_chunk_lib DEFINITION PUBLIC FINAL CREATE PUBLIC.
RAISING zcx_abapgit_exception.
CLASS-METHODS render_item_state
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(rv_html) TYPE string.
CLASS-METHODS render_branch_span
@ -49,7 +49,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_CHUNK_LIB IMPLEMENTATION.
CLASS zcl_abapgit_gui_chunk_lib IMPLEMENTATION.
METHOD render_branch_span.
@ -125,10 +125,12 @@ CLASS ZCL_ABAPGIT_GUI_CHUNK_LIB IMPLEMENTATION.
&& zcl_abapgit_html=>a(
iv_txt = '❌'
iv_typ = zif_abapgit_definitions=>c_action_type-onclick
iv_act = 'displayNews()'
iv_act = 'closeHotkeyOverview()'
iv_class = 'close-btn' )
&& '</div></div>' ).
ro_html->add( |<div class="paddings">Close window with ? or upper right corner X</div>| ).
" Generate hotkeys
ro_html->add( |<div class="newslist">| ).

View File

@ -555,6 +555,12 @@ function displayNews() {
div.style.display = (div.style.display) ? '' : 'none';
}
// Hotkey Overview
function closeHotkeyOverview() {
var div = document.getElementById("hotkeys");
div.style.display = (div.style.display) ? '' : 'none';
}
function KeyNavigation() {
}