mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
gtk: fix arrow-up stealing focus
This fixes #253 -- with essentially a single line! Just took me a while to find out where to add this line. Turns out we already solved this problem for `<Tab>` so now we do the same thing for `<Up>`: we tell the `GtkApplication` we handled the event so it doesn't propagate any further.
This commit is contained in:
@ -1171,6 +1171,9 @@ pub const Surface = struct {
|
||||
// If the key is tab, we say we handled it because we don't want
|
||||
// tab to move focus from our surface.
|
||||
c.GDK_KEY_Tab => 1,
|
||||
// We do the same for up, because that steals focus from the surface,
|
||||
// in case we have multiple tabs open.
|
||||
c.GDK_KEY_Up => 1,
|
||||
|
||||
else => 0,
|
||||
};
|
||||
|
Reference in New Issue
Block a user