186 Commits

Author SHA1 Message Date
cbiesinger%web.de
ac61f8fbae Bug 246447 Alt/Control/Shift/Meta should generate KeyUp and KeyDown but not KeyPress
r=bryner sr=jst patch by      Ilya Konstantinov <mozilla-bugzilla@future.shiny.co.il>


git-svn-id: svn://10.0.0.236/trunk@158686 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-02 12:08:38 +00:00
caillon%redhat.com
0a71cc2b7b Bug 241247
scroll lock and num lock need keycodes.
r+sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@155343 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-22 19:19:11 +00:00
gerv%gerv.net
586f796c2a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
neil%parkwaycc.co.uk
6e350e305a Bug 205648 Support "context menu" key under gtk/gtk2 p=crispin@flowerday.cx r=blizzard sr=bryner
git-svn-id: svn://10.0.0.236/trunk@153622 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 15:00:38 +00:00
bryner%brianryner.com
1eb41784ca fixing bustage
git-svn-id: svn://10.0.0.236/trunk@151192 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:49:54 +00:00
bryner%brianryner.com
3d8a7179f8 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@151191 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:25:18 +00:00
bryner%netscape.com
6d58bc1d0d Remove now-unused nsScrollingView and nsIScrollbar implementations. Removed unused widget/public/nsWidgetSupport.h. Bug 201624, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141538 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:01:36 +00:00
smontagu%netscape.com
0a8f31f676 Accept directly encoded Unicode characters sent instead of keysyms by some keymaps (e.g. Arabic). Bug 188538, r=jag, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@138567 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 00:19:42 +00:00
bzbarsky%mit.edu
796da36786 Make Ctrl-Shift-Caps-key work. Bug 164140, patch by pkw@us.ibm.com
(Philip K. Warren), r=akkana, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@133958 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 05:43:42 +00:00
bolian.yin%sun.com
c358d1affb Bug 156424, PgUp and PgDn in numeric keyboard don't work.
r=Roland.Mainz@informatik.med.uni-giessen.de, sr=bryner.


git-svn-id: svn://10.0.0.236/trunk@133363 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 02:23:23 +00:00
bryner%netscape.com
da718f1470 Bug 104371 - shiftKey not set correctly for keypress events, breaking shift+space binding. r=brade, bzbarsky, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@133250 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 03:34:13 +00:00
blizzard%redhat.com
6dc418b1ea Backout unapproved checkin for bug #104371.
git-svn-id: svn://10.0.0.236/trunk@132403 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 15:18:13 +00:00
hyatt%netscape.com
3dbbc65466 Fix for 104371, SHIFT not being set correctly in the DOM, i.e., the SHIFT+space
keybinding didn't work.  r=blizzard,brade sr=blake


git-svn-id: svn://10.0.0.236/trunk@132393 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 03:15:42 +00:00
pkw%us.ibm.com
4dee9b153e Bug 157397 - Enables entering national language data on AIX.
r=yokoyama@netscape.com, sr=kin@netscape.com, a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@132330 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-21 19:35:09 +00:00
bryner%netscape.com
f0e3378b8c Don't reuse the key event struct between the key down and key press events (bug 124990). r=dbaron, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@131043 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 01:24:39 +00:00
blizzard%redhat.com
defac81182 Bug #129591. nsWindow::Enabled is a no-op on GTK. Also fixes bug #65521. linux modal dialogs should only freeze parent window (not all windows.) This code is a big cleanup of the event dispatching code, too. r=bryner,sr=jst
git-svn-id: svn://10.0.0.236/trunk@120115 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-27 13:50:21 +00:00
jay.yan%sun.com
d5f4a357e2 bug 135663: On Solaris, physical F11 and F12 keys do not map to VK_F11 and VK_F12 keycodes
r=akk, sr=chris blizzard


git-svn-id: svn://10.0.0.236/trunk@118966 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-15 03:05:24 +00:00
akkana%netscape.com
bebe5f4e4c 57262: Support the "Stop" key on Sun keyboads.
61355: key bindings don't work when Caps Lock is on.
Fixes from Jay Yan, Jay.Yan@sun.com, r=akkana, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@118198 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 03:37:18 +00:00
akkana%netscape.com
88ad10ca3d 43433: Enable meta modifier in gtk event handler. Fix from jay.yan@sun.com, r=akkana, brade, sr=blizzard, a=asa
git-svn-id: svn://10.0.0.236/trunk@117028 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 02:39:12 +00:00
blizzard%redhat.com
1cd0952086 Bug #121011. Rewrite the gtk event handler. Specificially, mouse up is missed by the mozilla code when used in embedding when the event doesn't take place over the mozilla window area. r=bryner,sr=shaver,a=asa
git-svn-id: svn://10.0.0.236/trunk@116273 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-09 17:14:23 +00:00
bzbarsky%mit.edu
d0c7beb38b Use <> for system headers, not "". This should help prevent Sun WSU2
compiler bustage.  Bug 111574, patch from Roland Mainz
(<Roland.Mainz@informatik.med.uni-giessen.de>), r=bzbarsky, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108847 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 22:36:54 +00:00
bryner%netscape.com
d8f860b71e Bug 107500 -- clean up cruft in nsGtkEventHandler. r=jag,pavlov, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@106813 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:00:17 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
bryner%netscape.com
c87f830981 Bug 84023 - avoid an extra copy of the event struct when passing around resize events. Patch from Tomi.Leppikangas@oulu.fi, r=bryner, sr=tor.
git-svn-id: svn://10.0.0.236/trunk@99362 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-17 00:32:53 +00:00
blizzard%redhat.com
cd442dd6b2 Fix bug #82697. Crash when typing at the end of the location bar for systems that have gtk compiled with G_DISABLE_CHECKS defined. Also gets rid of the annoying Gtk warnings about gdk_window_ref() failing. r=pavlov,sr=tor,a=asa
git-svn-id: svn://10.0.0.236/trunk@96781 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-09 14:33:05 +00:00
ftang%netscape.com
74b8f582d0 fix bug 74088. check in for katakai@japan.sun.com
r=ftang/pavlov sr/a=blizzard
change the key event init code so we can handle the keysym correctly for
non ASCII keys


git-svn-id: svn://10.0.0.236/trunk@95848 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-24 01:07:41 +00:00
blizzard%redhat.com
11efaf1bb5 Fix bug #81826. When using plug/socket ( like in nautilus ) popup menus will some times come up in the wrong place. Invalidate the position cache based on the true toplevel window instead of the widget toplevel. r=pavlov,sr=tor
git-svn-id: svn://10.0.0.236/trunk@95565 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-20 19:44:41 +00:00
blizzard%redhat.com
6c254a95d9 Fix bug #72069. Move event processing until after the X event has been processed to prevent race conditions. Lots of Gtk warnings and crashes should be fixed with this. sr/r=shaver/brendan ( tag team )
git-svn-id: svn://10.0.0.236/trunk@89823 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-19 22:17:47 +00:00
blizzard%redhat.com
dd94b87174 Bug #67370. Better interleaving of xlib + plevents. r=danm sr=shaver
git-svn-id: svn://10.0.0.236/trunk@89399 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 23:57:18 +00:00
blizzard%redhat.com
9cd521e880 Fix bug #61782. Focus problems with gtk based plugins. This also cleans up a lot of other focus-related code as well. r=bryner, saari sr=scc
git-svn-id: svn://10.0.0.236/trunk@84189 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-29 19:02:00 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
e83a41018c Removed extra 0 arg from macro.
git-svn-id: svn://10.0.0.236/trunk@81896 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:37:22 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
disttsc%bart.nl
98e8e25ea6 Fixes several Gdk related key event problems on Linux / Solaris. r=,mo=Pavlov, a=blizzard
bug 53667 - alt + left/right doesn't navigate back/forward
bug 55792 - ctrl + left/right not skipping words
bug 54694 - ctrl + left segfaults


git-svn-id: svn://10.0.0.236/trunk@81339 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-18 01:17:06 +00:00
mcafee%netscape.com
d8ad9ef70e Fix alt-backarrow, alt-forwardarrow patch=jag, r=mcafee, sr=alecf (53667)
git-svn-id: svn://10.0.0.236/trunk@81238 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 21:40:19 +00:00
akkana%netscape.com
f8e7599ce6 More 50252: Handle the gtk keypad keys too. r=kin,pavlov
git-svn-id: svn://10.0.0.236/trunk@79582 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 00:02:30 +00:00
akkana%netscape.com
eac61c4ec3 50252: Fix non-alphabetic control/alt key events. r=kin,pavlov
git-svn-id: svn://10.0.0.236/trunk@79555 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 22:40:04 +00:00
akkana%netscape.com
eeebc2cd6a 50252: fix key events for printable but non-alphabetic keys. r=dr
git-svn-id: svn://10.0.0.236/trunk@79453 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 19:50:50 +00:00
bryner%uiuc.edu
76b362f237 This is a better fix for 42345. It should fix some of the "window opening
offscreen" problems people have been seeing.  r=blizzard.


git-svn-id: svn://10.0.0.236/trunk@77267 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-26 04:37:47 +00:00
blizzard%redhat.com
27e8e339fc back out changes described in bug #46901 since it breaks DOM key press events as described in bug #14856. a=brendan
git-svn-id: svn://10.0.0.236/trunk@76758 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 15:51:33 +00:00
bryner%uiuc.edu
fc97c0badb Fixing bug 42345 - hook up NS_MOVE events when a toplevel window is moved
on Linux.  Also use get_root_origin instead of get_origin so that we
persist the correct position.  r=blizzard.


git-svn-id: svn://10.0.0.236/trunk@76574 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 20:51:43 +00:00
pavlov%netscape.com
b0f48e963e avoid pulling the event out of the queue and putting it right back when typing.. working on linux performance bug 26502 r=beard
git-svn-id: svn://10.0.0.236/trunk@75865 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 05:16:17 +00:00
brade%netscape.com
68f69bf122 don't disable shift flag if any other modifiers are pressed and the key isPrintable (is a character); r=akkana, ftang; bug #46004
git-svn-id: svn://10.0.0.236/trunk@74740 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-25 14:12:39 +00:00
blizzard%redhat.com
467bf3303a fix focus problems documented in bug #45351. make sure that key press events are not passed to mozilla windows when an external gtk widget has focus and make sure that key press events are passed to mozilla when it has focus and a key press event happens outside of its windows. r=pavlov a=waterson
git-svn-id: svn://10.0.0.236/trunk@74164 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 11:48:28 +00:00
blizzard%redhat.com
757fa0cb81 fix for bug #44116. rewrite gtk focus handling. r=pavlov,akk a=brendan
git-svn-id: svn://10.0.0.236/trunk@74035 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:57:43 +00:00
blizzard%redhat.com
0fd07c8cdf fix for bug #43305. reduce the number of paints and fix leaking items into a linked list when scrolling. this should make linux a little faster. r=bryner,pavlov,imoT a=brendan
git-svn-id: svn://10.0.0.236/trunk@73655 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 19:05:47 +00:00
blizzard%redhat.com
16011dbc3d Change the way that focus is handled for toplevel windows and the GtkMozArea. This will allow us to track whether or not any Mozilla window has the focus.
Add code to properly propagate key press/key release events to the toplevel window if a Mozilla window doesn't have focus.  This fixes focus in the embedding case and will allow other gtk windows that have focus to get key events.
Add code to allow a Mozilla child window to be created as the child of any ol' GtkContainer class.  This means that parent's don't have to worry about creating a superwin or any of that garbage.  This makes embedding much, much easier. r=pavlov@netscape.com,hidetoshi.tajima@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@67839 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 03:33:43 +00:00
bryner%uiuc.edu
9238a4494c Stop building the unused native widgets (these were removed from the win32
build awhile back).  Also remove unused code relating to these
widgets.  r=blizzard.


git-svn-id: svn://10.0.0.236/trunk@67704 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 04:35:30 +00:00
akkana%netscape.com
3753603232 35961: Add missing keycodes for { } |
git-svn-id: svn://10.0.0.236/trunk@67146 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:54:53 +00:00
blizzard%redhat.com
60907f527e fix for bug #14856. this fixes DOM key events on linux so that a keyrepeat is keydown, keypress, keypress, keypress, keyup like it should be. r=syd
git-svn-id: svn://10.0.0.236/trunk@66171 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:45:08 +00:00