mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
35 lines
814 B
JavaScript
35 lines
814 B
JavaScript
|
|
||
|
// update menu items that rely on focus
|
||
|
function goUpdateGlobalEditMenuItems()
|
||
|
{
|
||
|
goUpdateCommand("cmd_undo");
|
||
|
goUpdateCommand("cmd_redo");
|
||
|
goUpdateCommand("cmd_cut");
|
||
|
goUpdateCommand("cmd_copy");
|
||
|
goUpdateCommand("cmd_paste");
|
||
|
goUpdateCommand("cmd_selectAll");
|
||
|
goUpdateCommand("cmd_delete");
|
||
|
}
|
||
|
|
||
|
// update menu items that rely on the current selection
|
||
|
function goUpdateSelectEditMenuItems()
|
||
|
{
|
||
|
goUpdateCommand("cmd_cut");
|
||
|
goUpdateCommand("cmd_copy");
|
||
|
goUpdateCommand("cmd_delete");
|
||
|
goUpdateCommand("cmd_selectAll");
|
||
|
}
|
||
|
|
||
|
// update menu items that relate to undo/redo
|
||
|
function goUpdateUndoEditMenuItems()
|
||
|
{
|
||
|
goUpdateCommand("cmd_undo");
|
||
|
goUpdateCommand("cmd_redo");
|
||
|
}
|
||
|
|
||
|
// update menu items that depend on clipboard contents
|
||
|
function goUpdatePasteMenuItems()
|
||
|
{
|
||
|
goUpdateCommand("cmd_paste");
|
||
|
}
|