diff --git a/Libraries/LibGfx/Cursor.h b/Libraries/LibGfx/Cursor.h index 834390961f3..a07d5e8b066 100644 --- a/Libraries/LibGfx/Cursor.h +++ b/Libraries/LibGfx/Cursor.h @@ -28,6 +28,7 @@ enum class StandardCursor { ResizeRow, Hand, Help, + OpenHand, Drag, DragCopy, Move, diff --git a/Libraries/LibWeb/Page/EventHandler.cpp b/Libraries/LibWeb/Page/EventHandler.cpp index 92222cf73f6..6331b10078d 100644 --- a/Libraries/LibWeb/Page/EventHandler.cpp +++ b/Libraries/LibWeb/Page/EventHandler.cpp @@ -108,6 +108,7 @@ static Gfx::Cursor resolve_cursor(Layout::NodeWithStyle const& layout_node, Vect case CSS::CursorPredefined::Cell: return Gfx::StandardCursor::Crosshair; case CSS::CursorPredefined::Grab: + return Gfx::StandardCursor::OpenHand; case CSS::CursorPredefined::Grabbing: return Gfx::StandardCursor::Drag; case CSS::CursorPredefined::Pointer: diff --git a/UI/AppKit/Interface/LadybirdWebView.mm b/UI/AppKit/Interface/LadybirdWebView.mm index 3de5e9cb990..c4c7ac81c58 100644 --- a/UI/AppKit/Interface/LadybirdWebView.mm +++ b/UI/AppKit/Interface/LadybirdWebView.mm @@ -417,6 +417,9 @@ static void copy_data_to_clipboard(StringView data, NSPasteboardType pasteboard_ // FIXME: AppKit does not have a corresponding cursor, so we should make one. [[NSCursor arrowCursor] set]; break; + case Gfx::StandardCursor::OpenHand: + [[NSCursor openHandCursor] set]; + break; case Gfx::StandardCursor::Drag: [[NSCursor closedHandCursor] set]; break; diff --git a/UI/Qt/WebContentView.cpp b/UI/Qt/WebContentView.cpp index 7593b319214..2d4f7e59c7e 100644 --- a/UI/Qt/WebContentView.cpp +++ b/UI/Qt/WebContentView.cpp @@ -680,6 +680,9 @@ void WebContentView::update_cursor(Gfx::Cursor cursor) case Gfx::StandardCursor::Help: setCursor(Qt::WhatsThisCursor); break; + case Gfx::StandardCursor::OpenHand: + setCursor(Qt::OpenHandCursor); + break; case Gfx::StandardCursor::Drag: setCursor(Qt::ClosedHandCursor); break;