Hotkey overview: Show link hint activation key (#5122)

This commit is contained in:
Christian Günter 2021-11-09 14:34:09 +01:00 committed by GitHub
parent 02a06cae8f
commit 4c919b2aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,8 @@ CLASS zcl_abapgit_gui_hotkey_ctl IMPLEMENTATION.
DATA:
lv_hint TYPE string,
lt_registered_hotkeys TYPE zif_abapgit_gui_hotkeys=>ty_hotkeys_with_descr,
lv_hotkey TYPE string.
lv_hotkey TYPE string,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings.
FIELD-SYMBOLS <ls_hotkey> LIKE LINE OF lt_registered_hotkeys.
@ -153,6 +154,16 @@ CLASS zcl_abapgit_gui_hotkey_ctl IMPLEMENTATION.
&& |<span class="key-descr">{ <ls_hotkey>-description }</span>|
&& |</li>| ).
ENDLOOP.
" render link hints activation key
ls_user_settings = zcl_abapgit_persistence_user=>get_instance( )->get_settings( ).
IF ls_user_settings-link_hints_enabled = abap_true.
ri_html->add( |<li>|
&& |<span class="key-id">{ ls_user_settings-link_hint_key }</span>|
&& |<span class="key-descr">Link Hints</span>|
&& |</li>| ).
ENDIF.
ri_html->add( '</ul>' ).
CLEAR lv_hotkey.