Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc01df6

Browse files
committed
changed hot keys for helphub
1 parent27d4ce3 commitdc01df6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎_includes/scripts.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
);
6161

6262
document.addEventListener("keydown",function(event){
63-
if(event.metaKey&&event.key==="k"){
63+
constisMac=navigator.userAgent.includes('Mac');
64+
if((event.key==="k")&&((isMac&&event.metaKey)||(!isMac&&event.ctrlKey))){
65+
event.preventDefault();
6466
window.CommandBar.openHelpHub();
6567
setTimeout(()=>{
6668
document.querySelector('input[data-testid=helphub-input]').focus()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp