How to combine 'document' and a class selector?

How to combine 'document' and a class selector?

The manual describes the use of "Multiple Selectors" here:


It says that one can simply combine them like this "sel1, sel2, ...". But if one of the selectors happens to be document (no quotes), then this combining doesn't work. Consider the following code which works perfectly fine:

  1. $(document).bind('keydown', 'f1', function() { $('#help_button').trigger("click"); return false; });
  2. $('.entry_fields').bind('keydown', 'f1', function() { $('#help_button').trigger("click"); return false; });

Here '.entry_fields' is a class containing some <input> elements. However, there is a code duplication here, so it would be nice if the $(document) and $('.entry_fields') could be combined by means of a single selector. I tried document, '.entry_fields' and 'document, .entry_fields' but neither of them work.

So, is there any way to combine document with a class selector?