mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
UI: Adjustments to Hotkeys (#4083)
- Add hotkey "f" for "new offline" - Add hotkey "c" for "syntax check" - Fix #3927
This commit is contained in:
parent
3ec07c6493
commit
46f504a0e8
|
@ -35,7 +35,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_GUI_PAGE_MAIN IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_gui_page_main IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD build_main_menu.
|
||||
|
@ -160,10 +160,15 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_MAIN IMPLEMENTATION.
|
|||
ls_hotkey_action-hotkey = |x|.
|
||||
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-hotkey = |n|.
|
||||
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.
|
||||
ENDCLASS.
|
||||
|
|
|
@ -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.
|
||||
|
@ -1256,7 +1256,7 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
|
|||
ls_hotkey_action-hotkey = |b|.
|
||||
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-hotkey = |o|.
|
||||
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|.
|
||||
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-action = zif_abapgit_definitions=>c_action-repo_code_inspector.
|
||||
ls_hotkey_action-hotkey = |i|.
|
||||
|
@ -1291,5 +1296,10 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_VIEW IMPLEMENTATION.
|
|||
ls_hotkey_action-hotkey = |l|.
|
||||
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.
|
||||
ENDCLASS.
|
||||
|
|
|
@ -84,7 +84,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_HOTKEYS IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_hotkeys IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD filter_relevant_classes.
|
||||
|
@ -372,7 +372,7 @@ CLASS ZCL_ABAPGIT_HOTKEYS IMPLEMENTATION.
|
|||
|
||||
lv_hint = |Close window with upper right corner 'X'|.
|
||||
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.
|
||||
|
||||
ri_html = zcl_abapgit_gui_chunk_lib=>render_infopanel(
|
||||
|
|
Loading…
Reference in New Issue
Block a user