Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: chrome/browser/chromeos/input_method/ibus_keymap.cc

Issue 12257032: Fix function key translation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding necessary headers. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/ibus_keymap.cc
diff --git a/chrome/browser/chromeos/input_method/ibus_keymap.cc b/chrome/browser/chromeos/input_method/ibus_keymap.cc
index 990ee3dc1016decd88ea3ba8fa3d45bf789d04bc..a4c060e2ae23f408798675b7a86960ac4b556528 100644
--- a/chrome/browser/chromeos/input_method/ibus_keymap.cc
+++ b/chrome/browser/chromeos/input_method/ibus_keymap.cc
@@ -6,6 +6,7 @@
#define XK_MISCELLANY
#include <X11/keysymdef.h>
+#include <X11/XF86keysym.h>
namespace chromeos {
namespace input_method {
@@ -16,24 +17,34 @@ std::string GetIBusKey(int keyval) {
case XK_Escape:
return "Esc";
case XK_F1:
+ case XF86XK_Back:
return "HistoryBack";
case XK_F2:
+ case XF86XK_Forward:
return "HistoryForward";
case XK_F3:
+ case XF86XK_Reload:
return "BrowserRefresh";
case XK_F4:
+ case XF86XK_LaunchB:
return "ChromeOSFullscreen"; // TODO: Check this value
case XK_F5:
+ case XF86XK_LaunchA:
return "ChromeOSSwitchWindow"; // TODO: Check this value
case XK_F6:
+ case XF86XK_MonBrightnessDown:
return "BrightnessDown";
case XK_F7:
+ case XF86XK_KbdBrightnessUp:
return "BrightnessUp";
case XK_F8:
+ case XF86XK_AudioMute:
return "AudioVolumeMute";
case XK_F9:
+ case XF86XK_AudioLowerVolume:
return "AudioVolumeDown";
case XK_F10:
+ case XF86XK_AudioRaiseVolume:
return "AudioVolumeUp";
case XK_BackSpace:
return "Backspace";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698