Back to index

im-sdk  12.3.91
IMTriggerKeyListP.cpp File Reference
#include "IMTriggerKeyList.hh"
#include "CompoundString.hh"
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>

Go to the source code of this file.


static unsigned int to_modifier (const char *str)

Function Documentation

static unsigned int to_modifier ( const char *  str) [static]

Definition at line 50 of file IMTriggerKeyListP.cpp.

  CompoundString modifier(str);
  if (modifier == CompoundString("Ctrl")) return ControlMask;
  if (modifier == CompoundString("Shift")) return ShiftMask;
  if (modifier == CompoundString("Meta")) return Mod4Mask;
  if (modifier == CompoundString("Alt")) return Mod1Mask;
  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: