Closed Bug 1026939 Opened 6 years ago Closed 6 years ago

Support new key names "LaunchFoo" for launching specific applications

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file, 1 obsolete file)

D3E-Key spec allows to define Launch<ApplicaitonName> key names by each implementation. However, we should support only predefined key names.

"LaunchWebBrowser", "LaunchCalendar", "LaunchMusicPlayer", "LaunchCalculator", "LaunchScreenSaver", "LaunchMyComputer", "LaunchMediaPlayer", "LaunchSpreadsheet", "LaunchWordProcessor", "LaunchWebCam"
Simply, mapping the key values and native virtual keycodes.

Although, these keys may not be exposed to us and web apps actually. But this must be important for Gaia.

https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3Events-key.html#h3_keys-apps
Attachment #8445219 - Flags: review?(romaxa)
Attachment #8445219 - Flags: review?(nchen)
Attachment #8445219 - Flags: review?(mwu)
Attachment #8445219 - Flags: review?(karlt)
Attachment #8445219 - Flags: review?(bugs)
Attachment #8445219 - Flags: review?(nchen) → review+
Comment on attachment 8445219 [details] [diff] [review]
Support "LaunchFoo" key values which launches specific application on GTK, Qt, Android and Gonk

The AudioMedia keysym for "Launch media collection app" is more common than CD, Video, or Music, and so should be in here.  LaunchMusicPlayer, I guess, but perhaps LaunchMediaPlayer - it is not clear.
Attachment #8445219 - Flags: review?(karlt) → review+
(In reply to Karl Tomlinson (needinfo?:karlt) from comment #2)
> The AudioMedia keysym for "Launch media collection app" is more common than
> CD, Video, or Music, and so should be in here.  LaunchMusicPlayer, I guess,
> but perhaps LaunchMediaPlayer - it is not clear.

Could be also "MediaSelect"... Anyway, the explanation isn't clear...

See also https://www.w3.org/Bugs/Public/show_bug.cgi?id=26141
Attachment #8445219 - Flags: review?(mwu) → review+
I guess that GDK_AudioMedia's purpose is to launch a file list of multimedia files (and may be able to play it like WMP). So, I map it to "MediaSelect" this mapping is same as Windows.

I'll create some environments of Linux on non-virtual machine. Then, I'll research how Linux handles multimedia keyboard's "media player" key.
Attachment #8445219 - Attachment is obsolete: true
Attachment #8445219 - Flags: review?(romaxa)
Attachment #8445219 - Flags: review?(bugs)
Attachment #8445760 - Flags: review?(romaxa)
Attachment #8445760 - Flags: review?(bugs)
Attachment #8445760 - Flags: review?(bugs) → review+
FYI: I confirmed that:

"LaunchApplication1": XF86XK_Documents
"LaunchApplication2": XF86XK_Calculater
"MediaSelect": XF86XK_Tools

on Fedora 20 and Ubuntu 14.04.

And they don't handle XF86XK_Documents and XF86XK_Tools. I.e., nothing is launched by pressing the keys.
Attachment #8445760 - Flags: review?(romaxa) → review+
https://hg.mozilla.org/mozilla-central/rev/700aa7de43c7
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.