Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Feature Request: ctrl-click to open in new window on react based pages

未关闭 适合新手
#1,587 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@morozov-av 已经在做这个了。

开始于 2026年10月8日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend

调研方向

首先,定位 Runestone Academy 前端中渲染顶级导航链接和按钮的 React 组件。添加一个点击处理程序,检查是否按下了 Ctrl 键,并使用 issue 中描述的子字符串比较来判断目标是否为新的顶级页面:如果是,则在新标签页中打开链接,而不是在当前页面中导航。通过按住 Ctrl 单击同一页面内和跨页面的导航链接来测试修复,确认行为正确。

由索引模型根据 Issue 内容生成。

描述

enhancement

Is your feature request related to a problem? Please describe.
I often want to leave the page I am on up while I open a link in a new tab. The react pages treat Ctrl-click like click and always changes the current page, even for something that is a top level navigation change.

Describe the solution you'd like
Buttons that function as top level links should try to handle ctrl-click by opening in a new window.

I think if neither current nor new URL are a substring of the other we could assume it is a new top level destination.

https://runestone.academy/assignment/instructor/grader
to
https://runestone.academy/assignment/instructor/grader/293802
is same page. As would be the other direction because one URL is a substring of the other.

https://runestone.academy/assignment/instructor/grader
to
https://runestone.academy/assignment/instructor/builder
is different page.

主要语言
TypeScript
星标
69
派生
119
平均合并
1 天 20 小时
30 天内合并 PR
27

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RunestoneInteractive/rs 的其他 Issue

查看 RunestoneInteractive/rs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。