[PR #3911] [MERGED] feat: focus codemirror view when ImportCurl component launched #4588

Closed
opened 2026-03-17 02:06:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3911
Author: @anwarulislam
Created: 3/19/2024
Status: Merged
Merged: 3/22/2024
Merged by: @jamesgeorge007

Base: release/2024.3.0Head: feat/focus-import-curl-field


📝 Commits (3)

  • 85506d8 feat: onInit callback to useCodemirror function
  • 0a28d58 feat: focus codemirror view when import curl modal launch
  • fbf5be2 refactor: inline onInit handler

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/http/ImportCurl.vue (+2 -0)
📝 packages/hoppscotch-common/src/composables/codemirror.ts (+8 -1)

📄 Description

Description

This PR introduces new changes to enhance user experience within the ImportCurl component. With this update, when the ImportCurl component is launched, the CodeMirror view automatically receives focus.

  • Not Completed
  • Completed

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3911 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 3/19/2024 **Status:** ✅ Merged **Merged:** 3/22/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `release/2024.3.0` ← **Head:** `feat/focus-import-curl-field` --- ### 📝 Commits (3) - [`85506d8`](https://github.com/hoppscotch/hoppscotch/commit/85506d81202a5d6f59945524639d0eb76ec3d467) feat: onInit callback to useCodemirror function - [`0a28d58`](https://github.com/hoppscotch/hoppscotch/commit/0a28d580f1fa9b920c001051618818a4711a1588) feat: focus codemirror view when import curl modal launch - [`fbf5be2`](https://github.com/hoppscotch/hoppscotch/commit/fbf5be27424735222903a52a645fa5f102c22841) refactor: inline `onInit` handler ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/http/ImportCurl.vue` (+2 -0) 📝 `packages/hoppscotch-common/src/composables/codemirror.ts` (+8 -1) </details> ### 📄 Description ### Description This PR introduces new changes to enhance user experience within the ImportCurl component. With this update, when the ImportCurl component is launched, the CodeMirror view automatically receives focus. - [ ] Not Completed - [x] Completed ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:06:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4588
No description provided.