mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
HackStudio: Fix the wrong cursor being drawn
This commit is contained in:
@@ -93,9 +93,10 @@ void Editor::paint_event(GUI::PaintEvent& event)
|
||||
if (horizontal_scrollbar().is_visible())
|
||||
rect.set_height(rect.height() - horizontal_scrollbar().height());
|
||||
painter.draw_rect(rect, palette().selection());
|
||||
|
||||
window()->set_override_cursor(m_hovering_link && m_holding_ctrl ? GUI::StandardCursor::Hand : GUI::StandardCursor::IBeam);
|
||||
}
|
||||
|
||||
if (m_hovering_editor)
|
||||
window()->set_override_cursor(m_hovering_link && m_holding_ctrl ? GUI::StandardCursor::Hand : GUI::StandardCursor::IBeam);
|
||||
}
|
||||
|
||||
static HashMap<String, String>& man_paths()
|
||||
@@ -283,6 +284,18 @@ void Editor::keyup_event(GUI::KeyEvent& event)
|
||||
GUI::TextEditor::keyup_event(event);
|
||||
}
|
||||
|
||||
void Editor::enter_event(Core::Event& event)
|
||||
{
|
||||
m_hovering_editor = true;
|
||||
GUI::TextEditor::enter_event(event);
|
||||
}
|
||||
|
||||
void Editor::leave_event(Core::Event& event)
|
||||
{
|
||||
m_hovering_editor = false;
|
||||
GUI::TextEditor::leave_event(event);
|
||||
}
|
||||
|
||||
static HashMap<String, String>& include_paths()
|
||||
{
|
||||
static HashMap<String, String> paths;
|
||||
|
||||
Reference in New Issue
Block a user