fix(import): importing a config does not clear shortcuts

オープン
#944 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
macos, swift
領域
desktop

調査の方向性

This repository holds bug reports and discussion for Rectangle Pro, so the fix is in the app's source, which the payload does not link. Start from the linked Rectangle issue #1346 and PR #1805, which fixed the same import behaviour in the free app. Done when importing a config with an empty or missing shortcuts entry leaves that action unbound, and a partial file leaves all other actions unset.

索引モデルが issue の本文から書いたものです。

説明

[!NOTE]
Written by Cursor Grok 4.6 on behalf of @techneissa.

What happens

Import Config applies shortcuts that have a keyCode in the JSON. Shortcuts that were cleared (the row shows Record Shortcut, and the export either omits the action or writes {}) stay as they were on this Mac.

Empty objects in shortcuts are treated the same as missing keys. After import, those rows still fire the old combination.

What should happen

Import should make the shortcut set match the file. A cleared action in the export should be cleared on this Mac. An action omitted from shortcuts should be cleared too.

How to see it

  1. Bind Top Left (or First Third) to any combination.
  2. Export the config.
  3. In the JSON, set that action to {} (or delete the action).
  4. Bind Top Left to a different combination in the app.
  5. Import the edited file.

The row still shows the combination from step 4, not Record Shortcut.

Where to look

The free app had the same bug in Rectangle #1346. That one was later fixed by PR #1805 ("Clear omitted shortcuts when importing config") in Rectangle 0.99. Rectangle Pro still skips those actions on import.

Done when

  • Importing a config whose shortcuts entry is {}, or missing, leaves that action with no shortcut.
  • Importing a file that only lists the shortcuts you want leaves every other action unset, not at its previous binding.
主要言語
言語のデータがありません
スター
156
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rxhanson/RectanglePro-Community のほかの issue

rxhanson/RectanglePro-Community の issue をすべて見る

似ている issue

Desktop Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。