UI: Adjustments to Hotkeys (#4083)

- Add hotkey "f" for "new offline"
- Add hotkey "c" for "syntax check"
- Fix #3927
This commit is contained in:
Marc Bernard 2020-10-28 01:42:40 -04:00 committed by GitHub
parent 3ec07c6493
commit 46f504a0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 6 deletions

View File

@ -35,7 +35,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_MAIN IMPLEMENTATION. CLASS zcl_abapgit_gui_page_main IMPLEMENTATION.
METHOD build_main_menu. METHOD build_main_menu.
@ -160,10 +160,15 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_MAIN IMPLEMENTATION.
ls_hotkey_action-hotkey = |x|. ls_hotkey_action-hotkey = |x|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Add online repository|. ls_hotkey_action-description = |New online repository|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_newonline. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_newonline.
ls_hotkey_action-hotkey = |n|. ls_hotkey_action-hotkey = |n|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |New offline repository|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_newoffline.
ls_hotkey_action-hotkey = |f|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ENDMETHOD. ENDMETHOD.
ENDCLASS. ENDCLASS.

View File

@ -184,7 +184,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION. CLASS zcl_abapgit_gui_page_repo_view IMPLEMENTATION.
METHOD apply_order_by. METHOD apply_order_by.
@ -1256,7 +1256,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
ls_hotkey_action-hotkey = |b|. ls_hotkey_action-hotkey = |b|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Installed repo list|. ls_hotkey_action-description = |Repository list|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-abapgit_home. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-abapgit_home.
ls_hotkey_action-hotkey = |o|. ls_hotkey_action-hotkey = |o|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
@ -1281,6 +1281,11 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
ls_hotkey_action-hotkey = |u|. ls_hotkey_action-hotkey = |u|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Run syntax check|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_syntax_check.
ls_hotkey_action-hotkey = |c|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Run code inspector|. ls_hotkey_action-description = |Run code inspector|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_code_inspector. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-repo_code_inspector.
ls_hotkey_action-hotkey = |i|. ls_hotkey_action-hotkey = |i|.
@ -1291,5 +1296,10 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
ls_hotkey_action-hotkey = |l|. ls_hotkey_action-hotkey = |l|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |abapGit settings|.
ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_settings.
ls_hotkey_action-hotkey = |x|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ENDMETHOD. ENDMETHOD.
ENDCLASS. ENDCLASS.

View File

@ -84,7 +84,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_HOTKEYS IMPLEMENTATION. CLASS zcl_abapgit_hotkeys IMPLEMENTATION.
METHOD filter_relevant_classes. METHOD filter_relevant_classes.
@ -372,7 +372,7 @@ CLASS ZCL_ABAPGIT_HOTKEYS IMPLEMENTATION.
lv_hint = |Close window with upper right corner 'X'|. lv_hint = |Close window with upper right corner 'X'|.
IF lv_hotkey IS NOT INITIAL. IF lv_hotkey IS NOT INITIAL.
lv_hint = lv_hint && | or '{ <ls_hotkey>-hotkey }'|. lv_hint = lv_hint && | or press '{ <ls_hotkey>-hotkey }' again|.
ENDIF. ENDIF.
ri_html = zcl_abapgit_gui_chunk_lib=>render_infopanel( ri_html = zcl_abapgit_gui_chunk_lib=>render_infopanel(