提交 e1f1c77d 编写于 作者: M MikeBeaton

OCB: Add =/+ key as alternative 'set default' key

上级 e7553ebc
......@@ -42,6 +42,7 @@ OpenCore Changelog
- Added tabbable Shutdown and Restart buttons to builtin picker
- Fixed in-firmware shutdown for some systems running OpenDuet
- Added Zero as alias hotkey for Escape, to force show picker if hidden
- Added =/+ key as alias for CTRL to set default OS
#### v0.6.7
- Fixed ocvalidate return code to be non-zero when issues are found
......
......@@ -3350,7 +3350,7 @@ the default boot entry choice will remain changed until the next manual reconfig
In addition, \texttt{Zero} is provided to support systems on which \texttt{Escape} is already assigned to
some other pre-boot firmware feature. In systems which do not require \texttt{KeySupport}, pressing and
holding one of these keys from after power on until the picker appears should always be successful. The
same should apply when using \texttt{KeySupport} mode if it is correctly configured for the system, i.e.
same should apply when using \texttt{KeySupport} mode if it is correctly configured for the system, i.e.
with a long enough \texttt{KeyForgetThreshold}. If pressing and holding the key is not successful to reliably
enter the picker, multiple repeated keypresses may be tried instead.
......@@ -3643,9 +3643,15 @@ nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-log |
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Allow \texttt{CTRL+Enter} and \texttt{CTRL+Index} handling
to set the default boot option in the OpenCore picker; may be used in combination
to set the default boot option in the OpenCore picker.
\emph{Note 1}: May be used in combination
with \texttt{Shift+Enter} or \texttt{Shift+Index} when \texttt{PollAppleHotKeys} is
enabled.
\emph{Note 2}: In order to support systems with unresponsive modifiers during preboot
(which includes \texttt{V1} and \texttt{V2} \texttt{KeySupport} mode on some firmware)
OpenCore also allows holding the \texttt{=/+} key in order to trigger `set default' mode.
\item
\texttt{ApECID}\\
\textbf{Type}: \texttt{plist\ integer}, 64 bit\\
......@@ -6309,11 +6315,11 @@ functioning. Feature highlights:
\emph{Note}: If you wish to fine tune this value, a good heuristic is to use
the `set default' indicator within either OpenCanopy or the builtin picker. When
\texttt{KeyForgetThreshold} is configured correctly, this indicator should
flicker once, when first pressing and holding the \texttt{CTRL} key, and then
flicker once, when first pressing and holding the \texttt{CTRL} or \texttt{=/+} key, and then
after a further very brief interval should go on and stay on. (The initial flicker
is an unavoidable artefact of using \texttt{KeySupport} to emulate raw keyboard
data.) If \texttt{KeyForgetThreshold} is configured too low for the system, then
the `set default' indicator will continue to flicker while CTRL is held. Configure
the `set default' indicator will continue to flicker while \texttt{CTRL} or \texttt{=/+} is held. Configure
the lowest value which causes this indicator to go on and stay on after the first
initial flicker.
......
......@@ -248,6 +248,14 @@ GetPickerKeyInfo (
PickerKeyInfo->OcModifiers |= OC_MODIFIERS_SET_DEFAULT;
}
//
// Alternative 'set default' key, if modifiers not working;
// useful both for 'set default' and for tuning KeyForgetThreshold.
//
if (OcKeyMapHasKey (AkmaKeys, AkmaNumKeys, AppleHidUsbKbUsageKeyEquals)) {
PickerKeyInfo->OcModifiers |= OC_MODIFIERS_SET_DEFAULT;
}
//
// Loosely apply regardless of other modifiers.
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册