Commit 31357d3c authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

Revert (at least for now) the alt/cmd switching since it breaks the

2008-11-05  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c:
	(get_keyboard_modifiers_from_ns_event), (create_key_event): Revert
	(at least for now) the alt/cmd switching since it breaks the
	"alt-gr" functionality of alt which makes it impossible to input
	lots of characters.

svn path=/trunk/; revision=21761
parent 89e28e06
2008-11-05 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c:
(get_keyboard_modifiers_from_ns_event), (create_key_event): Revert
(at least for now) the alt/cmd switching since it breaks the
"alt-gr" functionality of alt which makes it impossible to input
lots of characters.
2008-11-05 Christian Dywan <christian@imendio.com>
Bug 559404 – gtk_editable_insert_text counts length in bytes
......
......@@ -475,8 +475,6 @@ get_keyboard_modifiers_from_ns_event (NSEvent *nsevent)
if (nsflags & NSControlKeyMask)
modifiers |= GDK_CONTROL_MASK;
if (nsflags & NSCommandKeyMask)
modifiers |= GDK_META_MASK;
if (nsflags & NSAlternateKeyMask)
modifiers |= GDK_MOD1_MASK;
return modifiers;
......@@ -1587,7 +1585,7 @@ create_key_event (GdkWindow *window,
{
case GDK_Meta_R:
case GDK_Meta_L:
mask = GDK_META_MASK;
mask = GDK_MOD1_MASK;
break;
case GDK_Shift_R:
case GDK_Shift_L:
......@@ -1598,7 +1596,7 @@ create_key_event (GdkWindow *window,
break;
case GDK_Alt_R:
case GDK_Alt_L:
mask = GDK_MOD1_MASK;
mask = GDK_MOD5_MASK;
break;
case GDK_Control_R:
case GDK_Control_L:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment