Remove duplicate clipboad action (#6944)

This commit is contained in:
Marc Bernard 2024-06-11 16:15:53 +02:00 committed by GitHub
parent 4bf6e07235
commit 22e6df1d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 10 deletions

View File

@ -142,7 +142,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_ROUTER IMPLEMENTATION. CLASS zcl_abapgit_gui_router IMPLEMENTATION.
METHOD abapgit_services_actions. METHOD abapgit_services_actions.
@ -595,13 +595,7 @@ CLASS ZCL_ABAPGIT_GUI_ROUTER IMPLEMENTATION.
lv_clip_content = ii_event->query( )->get( 'CLIPBOARD' ). lv_clip_content = ii_event->query( )->get( 'CLIPBOARD' ).
APPEND lv_clip_content TO lt_clipboard. APPEND lv_clip_content TO lt_clipboard.
zcl_abapgit_ui_factory=>get_frontend_services( )->clipboard_export( lt_clipboard ). zcl_abapgit_ui_factory=>get_frontend_services( )->clipboard_export( lt_clipboard ).
MESSAGE 'Successfully exported URL to Clipboard.' TYPE 'S'. MESSAGE 'Successfully exported to clipboard' TYPE 'S'.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-yank_to_clipboard.
lv_clip_content = ii_event->form_data( )->get( 'CLIPBOARD' ).
APPEND lv_clip_content TO lt_clipboard.
zcl_abapgit_ui_factory=>get_frontend_services( )->clipboard_export( lt_clipboard ).
MESSAGE 'Successfully exported to Clipboard.' TYPE 'S'.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act. rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ENDCASE. ENDCASE.

View File

@ -1488,7 +1488,7 @@ LinkHints.prototype.handleKey = function(event) {
this.displayHints(false); this.displayHints(false);
event.preventDefault(); event.preventDefault();
if (this.yankModeActive) { if (this.yankModeActive) {
submitSapeventForm({ clipboard: hint.parent.firstChild.textContent }, "yank_to_clipboard"); submitSapeventForm({ clipboard: hint.parent.firstChild.textContent }, "clipboard");
this.yankModeActive = false; this.yankModeActive = false;
} else { } else {
this.hintActivate(hint); this.hintActivate(hint);

View File

@ -374,7 +374,6 @@ INTERFACE zif_abapgit_definitions
toggle_favorites TYPE string VALUE 'toggle_favorites', toggle_favorites TYPE string VALUE 'toggle_favorites',
url TYPE string VALUE 'url', url TYPE string VALUE 'url',
where_used TYPE string VALUE 'where_used', where_used TYPE string VALUE 'where_used',
yank_to_clipboard TYPE string VALUE 'yank_to_clipboard',
zip_export TYPE string VALUE 'zip_export', zip_export TYPE string VALUE 'zip_export',
zip_export_transport TYPE string VALUE 'zip_export_transport', zip_export_transport TYPE string VALUE 'zip_export_transport',
zip_import TYPE string VALUE 'zip_import', zip_import TYPE string VALUE 'zip_import',