mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWebView+UI: Generate the zoom menu
This commit is contained in:
Notes:
github-actions[bot]
2025-09-11 18:24:52 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/9684e6dbc59 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6062
@@ -135,6 +135,16 @@ static void initialize_native_control(WebView::Action& action, id control)
|
||||
[control setKeyEquivalent:@"u"];
|
||||
break;
|
||||
|
||||
case WebView::ActionID::ZoomIn:
|
||||
[control setKeyEquivalent:@"+"];
|
||||
break;
|
||||
case WebView::ActionID::ZoomOut:
|
||||
[control setKeyEquivalent:@"-"];
|
||||
break;
|
||||
case WebView::ActionID::ResetZoom:
|
||||
[control setKeyEquivalent:@"0"];
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user