Skip to content

fix(DuoChat): Add missing .exact modifier to redo shortcuts

What does this MR do?

This MR fixes an inconsistency in the duo_chat.vue component where the redo keyboard shortcuts were missing the .exact modifier, while the undo shortcuts had it.

Changes

  • Added .exact modifier to ctrl.shift.z, meta.shift.z, ctrl.y, and meta.y keyboard shortcuts in duo_chat.vue
  • This ensures consistency with the agentic_duo_chat.vue component which already has .exact on all undo/redo shortcuts

Why is this needed?

Without the .exact modifier, these shortcuts could potentially trigger when additional modifier keys are pressed, which may not be the intended behavior. The .exact modifier ensures the shortcuts only trigger with the exact key combination specified.

Related

This follows up on the recent commit c770c94c that added VSCode undo/redo functionality to both chat components.

Merge request reports

Loading