Comment 456 for bug 263435

Revision history for this message
In , 7-postmaster-alishomepage-com (7-postmaster-alishomepage-com) wrote :

Created attachment 508230
Workaround patch for Windows and GTK2

Attached is a patch for working around in the GTK2 and Windows NSPlugin containers.

Here is how it has been obtained:

  1. Download ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/4.0b10/source/firefox-4.0b10.source.tar.bz2
  2. Extract it once as firefox-4.0b10, and a second time as firefox-patch-78414
  3. Modify the files in firefox-patch-78414
  4. Extract the diff using:
    diff -ur firefox-patch-78414/ firefox-4.0b10

The expected behaviour after this patch:

  * On GTK2, the plugin gives focus to parent (i.e., the Web page) when:
    - key presses F1 to F24
    - any key pressed together with a modifier (CTRL or ALT), except for
      CTRL + Z, CTRL + Y, CTRL + A, CTRL + C, CTRL + V, CTRL + X
  * On Windows, the plugin shall loose focus when either any key from F1
    to F24, CTRL or ALT is down

On MacOS X, the current behaviour is the following:

  * When a plugin is focused, CMD + W, CMD + K, CMD + L, CMD + ALT + LEFT/RIGHT, ... are redirected to Firefox
  * Only CMD + 0 up to CMD + 9 are eaten by the plugin

Can anyone verify?

Cheers

S. Ali Tokmen
http://ali.tokmen.com/