8000 tweak · rinodrummer/nativephp.com@d995026 · GitHub
[go: up one dir, main page]

Skip to content

Commit d995026

Browse files
authored
tweak
1 parent f58486c commit d995026

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/docs/desktop/1/the-basics/application-menu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ Menu::make()
428428

429429
## Context Menu
430430

431-
You may need to add custom native context menu to the elements in the views of your application and override the default one.
431+
You may wish to add a custom native context menu to the elements in the views of your application and override the default one.
432432

433-
You can use the `Native` JavaScript object provvided by NativePHP's preload script.
433+
You can use the `Native` JavaScript helper provided by NativePHP's preload script.
434434

435435
This object exposes the `contextMenu()` method which takes an array of objects that matches the
436436
[MenuItem](https://www.electronjs.org/docs/latest/api/menu-item) constructor's `options` argument.
@@ -448,7 +448,7 @@ Native.contextMenu([
448448
]);
449449
```
450450

451-
You can use the `contextmenu` event to capture the user's action and show your menu:
451+
You can listen for the `contextmenu` event to show your custom context menu:
452452

453453
```js
454454
const element = document.getElementById('your-element');

0 commit comments

Comments
 (0)
0