~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/toolkit/content/editMenuOverlay.js

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// update menu items that rely on focus
 
3
function goUpdateGlobalEditMenuItems()
 
4
{
 
5
  goUpdateCommand("cmd_undo");
 
6
  goUpdateCommand("cmd_redo");
 
7
  goUpdateCommand("cmd_cut");
 
8
  goUpdateCommand("cmd_copy");
 
9
  goUpdateCommand("cmd_paste");
 
10
  goUpdateCommand("cmd_selectAll");
 
11
  goUpdateCommand("cmd_delete");
 
12
}
 
13
 
 
14
// update menu items that rely on the current selection
 
15
function goUpdateSelectEditMenuItems()
 
16
{
 
17
  goUpdateCommand("cmd_cut");
 
18
  goUpdateCommand("cmd_copy");
 
19
  goUpdateCommand("cmd_delete");
 
20
  goUpdateCommand("cmd_selectAll");
 
21
}
 
22
 
 
23
// update menu items that relate to undo/redo
 
24
function goUpdateUndoEditMenuItems()
 
25
{
 
26
  goUpdateCommand("cmd_undo");
 
27
  goUpdateCommand("cmd_redo");
 
28
}
 
29
 
 
30
// update menu items that depend on clipboard contents
 
31
function goUpdatePasteMenuItems()
 
32
{
 
33
  goUpdateCommand("cmd_paste");
 
34
}