Skip to content
You have no unread notifications
funige  /   neo  /   Pull requests #109  /  
Open in github.dev Open in a new github.dev tab Open in codespace
Code

ブラウザデフォルトのショートカットキー「ctrl+o」を無効化。 #109

Merged
merged 1 commit into from Feb 26, 2024

Conversation

satopian

Collaborator

const keys = ["+",";","=","-","s","h","r","y","z","u","o"];
	if ((e.ctrlKey||e.metaKey) && keys.includes(e.key.toLowerCase())){
		e.preventDefault();
	}

NEOの文字入力と、動的パレットのテキストエリアにフォーカスしている時のブラウザデフォルトのショートカットキーのいくつかをキャンセルしています。
そこに、ctrl+oも追加して、ブラウザでファイルを開くショートカットを無効化します。
描画中にctrl+oを使う人はほとんどいないとは思いますが、動作しなくてもいいショートカットキーを無効化して事故を減らします。

@satopian satopian merged commit 0021eb5 into funige:master Feb 26, 2024

Update branch attempt failed

Oops, something went wrong.

@funige

Add a comment

Select a reply

Slash commands
Beta
Give feedback
Slash commands
Beta
Give feedback

An unexpected error has occurred

Remember, contributions to this repository should follow our GitHub Community Guidelines.
ProTip! Add .patch or .diff to the end of URLs for Git’s plaintext views.
Labels
Apply labels to this pull request
None yet
Projects
Projects
None yet
Development
Link an issue from this repository

Successfully merging this pull request may close these issues.

None yet

1 participant
Lock conversation

Lock conversation on this pull request

  • Other users can’t add new comments to this pull request.
  • You and other collaborators with access to this repository can still leave comments that others can see.
  • You can always unlock this pull request again in the future.

Optionally, choose a reason for locking that others can see. Learn more about when it’s appropriate to lock conversations.

ブラウザデフォルトのショートカットキー「ctrl+o」を無効化。 by satopian · Pull Request #109 · funige/neo