Closed Bug 769548 Opened 12 years ago Closed 12 years ago

Support ISO_Level5_Shift as AltGr too

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) (deleted) — Splinter Review
Now, we're handling ISO_Level3_Shift and Mode_Switch as AltGr on GTK. ISO_Level5_Shift should also be handled as AltGr in DOM level. ISO_Level3_Shift and ISO_Level5_Shift don't share the Mod flag, of course. So, we need to store them separately. Perhaps, Mode_Switch could have an independent modifier flag, but I don't know the actual cases.
Attachment #637791 - Flags: review?(karlt)
Blocks: 680830
No longer blocks: 630810
Comment on attachment 637791 [details] [diff] [review] Patch Oh, level5 keys are defined in GTK3. We should define them ourselves.
Attachment #637791 - Flags: review?(karlt) → review-
Attached patch Patch (deleted) — Splinter Review
Attachment #637791 - Attachment is obsolete: true
Attachment #640173 - Flags: review?(karlt)
Comment on attachment 640173 [details] [diff] [review] Patch Renaming the ALTGR modifier to LEVEL3 and adding LEVEL5 looks fine (because these will correspond to different modifier bits). But I don't follow why you map them both to the same NS_VK_ALTGR and MODIFIER_ALTGRAPH because I expect the function of the level 3 and level 5 is quite different? >+// ISO level5 shift is supported on GTK3 >+#define GDK_ISO_Level5_Shift 0xFE11 >+#define GDK_ISO_Level5_Latch 0xFE12 >+#define GDK_ISO_Level5_Lock 0xFE13 Please wrap this in "#if MOZ_WIDGET_GTK == 2".
I guess you just want the DOM to know that a modifier is down, so that it doesn't treat the key in the regular way, and there is no other DOM modifier suitable?
Comment on attachment 640173 [details] [diff] [review] Patch Sounds fine if comment 4 is the motivation. > >+// ISO level5 shift is supported on GTK3 > >+#define GDK_ISO_Level5_Shift 0xFE11 > >+#define GDK_ISO_Level5_Latch 0xFE12 > >+#define GDK_ISO_Level5_Lock 0xFE13 > > Please wrap this in "#if MOZ_WIDGET_GTK == 2". Or perhaps better, "#ifndef GDK_ISO_Level5_Shift".
Attachment #640173 - Flags: review?(karlt) → review+
(In reply to Karl Tomlinson (:karlt) from comment #4) > I guess you just want the DOM to know that a modifier is down, so that it > doesn't treat the key in the regular way, and there is no other DOM modifier > suitable? Absolutely. D3E doesn't assume there is a platform which has two or more AltGr like modifier key. I guess that Web Apps developers want to know if the key press event is fired with AltGr like key.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: