It’s BWindow
, not app_server
; it just adds these and a few other keys via AddShortcuts
in its constructor.
For most applications, you should not bypass this handling, but just handle the B_COPY
/etc. messages when you receive them (as they can be generated other ways than just pressing the shortcut) to modify the clipboard.
But for specialized applications (e.g. ports of software from other OSes) where you really need the events nonetheless, you can bypass this in one of two ways:
-
calling RemoveShortcut
to remove these and whichever other shortcuts from the window.
-
overriding BWindow::DispatchMessage
and doing your own handling before BWindow
has a chance to catch shortcuts. Note that this will also bypass most global shortcuts, including Print-Screen
, Ctrl/Alt-Tab
, and others!