[haiku-bugs] [Haiku] #18172: Screenshot and Twitcher shortcuts stop working if handling key events in BWindow::DispatchMessage

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 25 Dec 2022 05:51:17 -0000

#18172: Screenshot and Twitcher shortcuts stop working if handling key events in
BWindow::DispatchMessage
--------------------------------+-----------------------------
 Reporter:  X512                |       Owner:  nobody
     Type:  bug                 |      Status:  new
 Priority:  normal              |   Milestone:  Unscheduled
Component:  Kits/Interface Kit  |     Version:  R1/Development
 Keywords:                      |  Blocked By:
 Blocking:                      |    Platform:  All
--------------------------------+-----------------------------
 This is hrev56630.

 Adding key down handling in a method overriding `BWindow::DispatchMessage`
 cause screenshot and Twitcher shortcuts not working if window is focused.
 Key down handling in `BWindow::DispatchMessage` is required for
 applications that implements its own shortcut handling such as GTK over
 Wayland, for virtual machines and remote desktop clients.

 This happens because screenshot and Twitcher shortcuts handling is done in
 `BWindow::DispatchMessage`
 
(https://github.com/haiku/haiku/blob/c9e5ef8796122ccd09cd39ff1e8b354547e0a511/src/kits/interface/Window.cpp#L3671),
 but it should be done `input_server` (and/or its add-ons).
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/18172>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: