mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
WindowServer: Support Alt shortcuts inside menus as well
Menu items can now also have Alt shortcut, and they work the same way top-level menu Alt shortcuts do. This replaces the previous "type to search" mechanism we had in menus.
This commit is contained in:
parent
2b9bc605d2
commit
0fc2651303
4 changed files with 32 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -31,13 +31,12 @@
|
|||
#include "Window.h"
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibCore/Timer.h>
|
||||
|
||||
namespace WindowServer {
|
||||
|
||||
class MenuManager final : public Core::Object {
|
||||
C_OBJECT(MenuManager)
|
||||
C_OBJECT(MenuManager);
|
||||
|
||||
public:
|
||||
static MenuManager& the();
|
||||
|
||||
|
@ -80,9 +79,6 @@ private:
|
|||
WeakPtr<Window> m_previous_input_window;
|
||||
Vector<WeakPtr<Menu>> m_open_menu_stack;
|
||||
|
||||
RefPtr<Core::Timer> m_search_timer;
|
||||
StringBuilder m_current_search;
|
||||
|
||||
int m_theme_index { 0 };
|
||||
|
||||
WeakPtr<Menu> m_hovered_menu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue