p .Cd "options ALTXBUTTONS" .Cd "options CAPS_IS_CONTROL" .Cd "options FORCE_FUNCTION_KEYS" . .Sh DESCRIPTION . This driver provides the .Xr wscons 4 driver with support for Apple Desktop Bus keyboards. l -tag -width Cd . t Cd "options ALTXBUTTONS" . To map .Sm off .Ao Option Ac + Aq 1 , .Sm on .Sm off .Ao Option Ac + Aq 2 , .Sm on .Sm off .Ao Option Ac + Aq 3 , .Sm on to mouse buttons 1, 2, and 3 respectively. . t Cd options CAPS_IS_CONTROL . On macppc systems it is possible to tweak the keyboard driver to treat the caps lock key on an .Tn ADB keyboard as a control key. This requires special remapping because of .Tn ADB Ap s strange emulation of a mechanically-locked key. . t Cd options FORCE_FUNCTION_KEYS . On macppc PowerBooks, several function keys double as .Dq hot keys
q brightness, volume, eject when the .Aq Fn modifier is held down. Mac OS\~X likes to reprogram the keyboard controller to send hot key events when .Aq Fn is .Em not held down and send function key events when it is. With this option you can transform the non-keyboard .Dq button events back into function key events. .El . .Ss Special Keys . To work around the limited number of buttons found on most .Tn ADB mice, the following key sequences trigger mouse button events:
p l -dash -compact t .Sm off .Ao Option Ac + Aq LeftArrow .Sm on will work as the middle mouse button. t .Sm off .Ao Option Ac + Aq RightArrow .Sm on will work as the right mouse button. .El
p On PowerBook (mac68k) models the following key sequences are also significant:
p l -dash -compact t .Sm off .Ao Option Ac + Aq UpArrow .Sm on increase screen brightness. t .Sm off .Ao Option Ac + Aq DownArrow .Sm on decrease screen brightness. .El . .Ss Supported Hardware . .Nx is known to support the following .Tn ADB keyboards:
p l -bullet -offset indent -compact t On-board keyboards on PowerBook models t Apple Standard Keyboard t Apple Keyboard II t Apple Extended Keyboard t Apple Extended Keyboard II t Apple Adjustable Keyboard t Most third-party .Tn ADB keyboards are supported .El . .Sh SEE ALSO . .Xr xmodmap 1 , .Xr adb 4 , .Xr wscons 4 , .Xr wskbd 4 , .Xr wsconsctl 8 . .Sh BUGS . The number pad on extended keyboards does not send out the proper key codes for many applications.
p The LEDs on extended keyboards are not functional under .Nx .
p In X11 with the default key mapping, middle and right mouse button events will hold .Ql Meta_L and this will clobber the intended mouse button. .Aq Option shoud be remapped with .Xr xmodmap 1 to the .Aq Command key: d -literal -offset indent remove Mod4 = Super_L remove Mod1 = Alt_L add Mod1 = Super_L .Ed