hotkey [-altModifier] [-autoSave boolean] [-commandModifier] [-ctrlModifier] [-factorySettings] [-isModifier] [-keyShortcut string] [-name string] [-pressCommandRepeat boolean] [-releaseCommandRepeat boolean] [-releaseName string] [-sourceUserHotkeys]
hotkey は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。
このコマンドは、アプリケーション全体用の単一キーのホットキーを設定します。なし
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
-altModifier(-alt)
|
|
|||
|
||||
-ctrlModifier(-ctl)
|
|
![]() ![]() |
||
|
||||
-commandModifier(-cmd)
|
|
![]() |
||
|
||||
-isModifier(-mod)
|
|
![]() |
||
|
||||
-keyShortcut(-k)
|
string
|
![]() |
||
|
||||
-name(-n)
|
string
|
![]() ![]() |
||
|
||||
-releaseName(-rn)
|
string
|
![]() ![]() |
||
|
||||
-autoSave(-as)
|
boolean
|
![]() |
||
|
||||
-factorySettings(-fs)
|
|
![]() |
||
|
||||
-sourceUserHotkeys(-suh)
|
|
![]() |
||
|
||||
-pressCommandRepeat(-pcr)
|
boolean
|
![]() |
||
|
||||
-releaseCommandRepeat(-rcr)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Here's an example of how to create a namedCommand // object and then map it to a key. // nameCommand -annotation "Select Circle Tool" -command "setToolTo circleContext" circleToolNamedCommand; hotkey -k "F5" -alt -name "circleToolNamedCommand"; // Here are more examples of how to use the hotkey command. // hotkey -k "d" -name "Delete_Command"; hotkey -k "d" -name ""; // unsets the above command hotkey -k "d" -name "Delete_Command"; hotkey -k "d" -releaseName "After_Delete_Command"; hotkey -k "d" -name ""; //only unsets the key press name hotkey -k "d" -releaseName ""; //only unsets the key release name hotkey -k "d" -n "" -rn ""; //unsets both the key press and release name // Determine if a command is attached to either the press or release // of the "z" hotkey. // hotkey -query z; // Likewise, for the modified variations of the "z" key. // hotkey -query -alt z; hotkey -query -ctl z; hotkey -query -alt -ctl z; // Determine the press command attached to the "z" key. // hotkey -query -name z; // To query the "-" hotkey use the string "Dash" instead. // hotkey -query Dash;