mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #975 from gpanders/cursor-pointer
Preserve cursor shape when over a link
This commit is contained in:
@ -1252,7 +1252,11 @@ pub fn keyCallback(
|
|||||||
event.physical_key == .right_shift)
|
event.physical_key == .right_shift)
|
||||||
{
|
{
|
||||||
switch (event.action) {
|
switch (event.action) {
|
||||||
.press => try self.rt_surface.setMouseShape(.text),
|
.press => if (!self.mouse.over_link) {
|
||||||
|
// If the cursor is over a link then the pointer shape takes
|
||||||
|
// priority
|
||||||
|
try self.rt_surface.setMouseShape(.text);
|
||||||
|
},
|
||||||
.release => try self.rt_surface.setMouseShape(self.io.terminal.mouse_shape),
|
.release => try self.rt_surface.setMouseShape(self.io.terminal.mouse_shape),
|
||||||
.repeat => {},
|
.repeat => {},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user