<keymap>
	<map context="ListboxActions">
		<device name="keyboard">
			<key id="a" mapto="up" flags="mr" />
			<key id="b" mapto="down" flags="mr" />
		</device>
		<key id="KEY_UP" mapto="moveUp" flags="mr" />
		<key id="KEY_DOWN" mapto="moveDown" flags="mr" />
		<key id="KEY_HOME" mapto="moveTop" flags="mr" />
		<key id="KEY_END" mapto="moveEnd" flags="mr" />
		<key id="KEY_PAGEUP" mapto="pageUp" flags="mr" />
		<key id="KEY_PAGEDOWN" mapto="pageDown" flags="mr" />
		<key id="KEY_LEFT" mapto="pageUp" flags="mr" />
		<key id="KEY_RIGHT" mapto="pageDown" flags="mr" />
		
		<key id="1" mapto="moveUp" flags="mr" />
		<key id="2" mapto="moveDown" flags="mr" />
	</map>
	
	<map context="KeyboardInputActions">
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_HOME" mapto="home" flags="mr" />
		<key id="KEY_END" mapto="end" flags="mr" />
		<key id="KEY_BACK" mapto="home" flags="mr" />
		<key id="KEY_FORWARD" mapto="end" flags="mr" />
		<key id="KEY_DELETE" mapto="deleteForward" flags="mr" />
		<key id="KEY_BACKSPACE" mapto="deleteBackward" flags="mr" />
		<key id="KEY_TAB" mapto="tab" flags="mr" />
		<key id="KEY_INSERT" mapto="toggleOverwrite" flags="m" />
	</map>

	<map context="SetupActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="cancel" flags="m" />
			<key id="KEY_F2" mapto="save" flags="m" />
			<key id="KEY_DELETE" mapto="deleteForward" flags="mr" />
			<key id="KEY_BACKSPACE" mapto="deleteBackward" flags="mr" />
		</device>
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_EXIT" mapto="cancel" flags="m" />
		<key id="KEY_ESC" mapto="cancel" flags="m" />
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_RED" mapto="cancel" flags="m" />
		<key id="KEY_GREEN" mapto="save" flags="m" />
		<key id="KEY_PAGEUP" mapto="previousSection" flags="mr" />
		<key id="KEY_PAGEDOWN" mapto="nextSection" flags="mr" />
		<key id="KEY_CHANNELUP" mapto="previousSection" flags="mr" />
		<key id="KEY_CHANNELDOWN" mapto="nextSection" flags="mr" />
		<device name="dreambox remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
		<key id="KEY_1" mapto="1" flags="m" />
		<key id="KEY_2" mapto="2" flags="m" />
		<key id="KEY_3" mapto="3" flags="m" />
		<key id="KEY_4" mapto="4" flags="m" />
		<key id="KEY_5" mapto="5" flags="m" />
		<key id="KEY_6" mapto="6" flags="m" />
		<key id="KEY_7" mapto="7" flags="m" />
		<key id="KEY_8" mapto="8" flags="m" />
		<key id="KEY_9" mapto="9" flags="m" />
		<key id="KEY_0" mapto="0" flags="m" />
	</map>
	
	<map context="InputActions">
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_1" mapto="1" flags="m" />
		<key id="KEY_2" mapto="2" flags="m" />
		<key id="KEY_3" mapto="3" flags="m" />
		<key id="KEY_4" mapto="4" flags="m" />
		<key id="KEY_5" mapto="5" flags="m" />
		<key id="KEY_6" mapto="6" flags="m" />
		<key id="KEY_7" mapto="7" flags="m" />
		<key id="KEY_8" mapto="8" flags="m" />
		<key id="KEY_9" mapto="9" flags="m" />
		<key id="KEY_0" mapto="0" flags="m" />
	</map>

	<map context="InfobarEPGActions">
		<key id="KEY_INFO" mapto="showEventInfo" flags="b" />
		<key id="KEY_INFO" mapto="showEventInfoPlugin" flags="l" />
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_YELLOW" mapto="showEventList" flags="b" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_YELLOW" mapto="showEventList" flags="b" />
		</device>
	</map>
	
	<map context="InfobarInstantRecord">
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_RECORD" mapto="instantRecord" flags="m" />
			<!-- this breaks timeshift end!!! key id="KEY_STOP" mapto="instantRecord" flags="m" /-->
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_RECORD" mapto="instantRecord" flags="m" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_RED" mapto="instantRecord" flags="b" />
		</device>
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="instantRecord" flags="b" />
		</device>
	</map>

	<map context="InfobarExtensions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F4" mapto="extensions" flags="b" />
		</device>
		<key id="KEY_BLUE" mapto="extensions" flags="b" />
	</map>
	
	<map context="SatlistShortcutAction">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F4" mapto="nothingconnected" flags="b" />
		</device>
		<key id="KEY_BLUE" mapto="nothingconnected" flags="b" />
	</map>
	
	<map context="InfobarChannelSelection">
		<key id="KEY_LEFT" mapto="zapUp" flags="mr" />
		<key id="KEY_RIGHT" mapto="zapDown" flags="mr" />
		<key id="KEY_UP" mapto="switchChannelUp" flags="mr" />
		<key id="KEY_DOWN" mapto="switchChannelDown" flags="mr" />
		<key id="KEY_PREVIOUS" mapto="historyBack" flags="mr" />
		<key id="KEY_NEXT" mapto="historyNext" flags="mr" />
		<key id="KEY_BACK" mapto="historyBack" flags="mr" />
		<key id="KEY_FORWARD" mapto="historyNext" flags="mr" />
		<key id="KEY_CHANNELUP" mapto="openServiceList" flags="m" />
		<key id="KEY_CHANNELDOWN" mapto="openServiceList" flags="m" />
		<key id="BTN_0" mapto="zapUp" flags="mr" />
		<key id="BTN_1" mapto="zapDown" flags="mr" />
	</map>
	
	<map context="MinuteInputActions">
		<key id="KEY_UP" mapto="up" flags="mr" />
		<key id="KEY_DOWN" mapto="down" flags="mr" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_EXIT" mapto="cancel" flags="m" />
		<key id="KEY_ESC" mapto="cancel" flags="m" />
	</map>

	<map context="InputAsciiActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_ASCII" mapto="gotAsciiCode" flags="mr" />
		</device>
	</map>

	<map context="InputBoxActions">
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_EXIT" mapto="back" flags="m" />
		<key id="KEY_ESC" mapto="back" flags="m" />
		<device name="compatible: pcKeyboard">
			<key id="KEY_DELETE" mapto="deleteForward" flags="mr" />
			<key id="KEY_BACKSPACE" mapto="deleteBackward" flags="mr" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
		<key id="KEY_1" mapto="1" flags="m" />
		<key id="KEY_2" mapto="2" flags="m" />
		<key id="KEY_3" mapto="3" flags="m" />
		<key id="KEY_4" mapto="4" flags="m" />
		<key id="KEY_5" mapto="5" flags="m" />
		<key id="KEY_6" mapto="6" flags="m" />
		<key id="KEY_7" mapto="7" flags="m" />
		<key id="KEY_8" mapto="8" flags="m" />
		<key id="KEY_9" mapto="9" flags="m" />
		<key id="KEY_0" mapto="0" flags="m" />
	</map>
	
	<map context="WizardActions">
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_UP" mapto="up" flags="mr" />
		<key id="KEY_DOWN" mapto="down" flags="mr" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_EXIT" mapto="back" flags="m" />
		<key id="KEY_ESC" mapto="back" flags="m" />
		<key id="KEY_TEXT" mapto="text" flags="m" />
		<key id="KEY_VIDEO" mapto="video" flags="m" />
	</map>
	
	<map context="InfobarMenuActions">
		<key id="KEY_MENU" mapto="mainMenu" flags="mr" />
		<device name="compatible: pcKeyboard">
			<key id="KEY_SPACE" mapto="mainMenu" flags="mr" />
		</device>
	</map>
	
	<map context="MenuActions">
		<key id="KEY_MENU" mapto="menu" flags="mr" />
		<device name="compatible: pcKeyboard">
			<key id="KEY_SPACE" mapto="menu" flags="mr" />
		</device>
	</map>
	
	<map context="InfobarShowHideActions">
		<key id="KEY_OK" mapto="toggleShow" flags="m" />
		<key id="KEY_ENTER" mapto="toggleShow" flags="m" />
		<key id="KEY_KPENTER" mapto="toggleShow" flags="m" />
		<key id="KEY_EXIT" mapto="hide" flags="m" />
		<key id="KEY_ESC" mapto="hide" flags="m" />
	</map>

	<map context="InfobarActions">
		<device name="compatible: pcKeyboard; dreambox ir keyboard">
			<key id="KEY_F8" mapto="showMovies" flags="m" />
		</device>
		<key id="KEY_VIDEO" mapto="showMovies" flags="m" />
		<key id="KEY_RADIO" mapto="showRadio" flags="m" />
		<key id="KEY_TV" mapto="showTv" flags="m" />
	</map>

	<map context="InfobarAudioSelectionActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F3" mapto="audioSelection" flags="b" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_AUDIO" mapto="audioSelection" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_AUDIO" mapto="audioSelection" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_AUDIO" mapto="audioSelection" flags="m" />
		</device>
	</map>

	<map context="InfobarSubserviceSelectionActions">
		<key id="KEY_GREEN" mapto="subserviceSelection" flags="b" />
	</map>

	<map context="InfobarSubserviceQuickzapActions">
		<key id="KEY_PREVIOUS" mapto="prevSubservice" flags="m" />
		<key id="KEY_NEXT" mapto="nextSubservice" flags="m" />
		<key id="KEY_BACK" mapto="prevSubservice" flags="m" />
		<key id="KEY_FORWARD" mapto="nextSubservice" flags="m" />
		<key id="KEY_EXIT" mapto="exit" flags="m" />
		<key id="KEY_ESC" mapto="exit" flags="m" />
		<device name="dreambox remote control (native)">
			<key id="KEY_TV" mapto="exit" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_TV" mapto="exit" flags="m" />
		</device>
	</map>

	<map context="GlobalActions">
		<key id="KEY_VOLUMEUP" mapto="volumeUp" flags="mr" />
		<key id="KEY_VOLUMEDOWN" mapto="volumeDown" flags="mr" />
		<key id="KEY_MUTE" mapto="volumeMute" flags="mr" />
		<key id="KEY_POWER" mapto="power_long" flags="l" />
		<key id="KEY_POWER" mapto="power_down" flags="m" />
		<key id="KEY_POWER" mapto="power_up" flags="b" />
		<device name="dreambox front panel">
			<key id="KEY_POWER" mapto="deepstandby" flags="l" />
		</device>
	</map>
	
	<map context="PowerKeyActions">
		<key id="KEY_POWER" mapto="powerdown" flags="m" />
		<key id="KEY_POWER" mapto="powerup" flags="b" />
	</map>
	
	<map context="NumberActions">
		<key id="KEY_1" mapto="1" flags="m" />
		<key id="KEY_2" mapto="2" flags="m" />
		<key id="KEY_3" mapto="3" flags="m" />
		<key id="KEY_4" mapto="4" flags="m" />
		<key id="KEY_5" mapto="5" flags="m" />
		<key id="KEY_6" mapto="6" flags="m" />
		<key id="KEY_7" mapto="7" flags="m" />
		<key id="KEY_8" mapto="8" flags="m" />
		<key id="KEY_9" mapto="9" flags="m" />
		<key id="KEY_0" mapto="0" flags="m" />
	</map>

	<map context="TextEntryActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_DELETE" mapto="deleteForward" flags="mr" />
			<key id="KEY_BACKSPACE" mapto="deleteBackward" flags="mr" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_MUTE" mapto="deleteForward" flags="mr" />
			<key id="KEY_NEXT" mapto="deleteForward" flags="mr" />
			<key id="KEY_PREVIOUS" mapto="deleteBackward" flags="mr" />
		</device>
	</map>

	<map context="InfobarSeekActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F3" mapto="pauseService" flags="b" />
			<key id="KEY_F2" mapto="unPauseService" flags="b" />
			<key id="KEY_F1" mapto="seekBack" flags="b" />
			<key id="KEY_F4" mapto="seekFwd" flags="b" />
			<key id="KEY_F1" mapto="seekBackManual" flags="l" />
			<key id="KEY_F4" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_YELLOW" mapto="pauseService" flags="b" />
			<key id="KEY_GREEN" mapto="unPauseService" flags="b" />
			<key id="KEY_RED" mapto="seekBack" flags="b" />
			<key id="KEY_BLUE" mapto="seekFwd" flags="b" />
			<key id="KEY_RED" mapto="seekBackManual" flags="l" />
			<key id="KEY_BLUE" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PLAY" mapto="playpauseService" flags="m" />
			<key id="KEY_PREVIOUSSONG" mapto="seekBack" flags="b" />
			<key id="KEY_NEXTSONG" mapto="seekFwd" flags="b" />
			<key id="KEY_PREVIOUSSONG" mapto="seekBackManual" flags="l" />
			<key id="KEY_NEXTSONG" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_PAUSE" mapto="pauseService" flags="m" />
			<key id="KEY_PLAY" mapto="playpauseService" flags="m" />
			<key id="KEY_REWIND" mapto="seekBack" flags="b" />
			<key id="KEY_FASTFORWARD" mapto="seekFwd" flags="b" />
			<key id="KEY_REWIND" mapto="seekBackManual" flags="l" />
			<key id="KEY_FASTFORWARD" mapto="seekFwdManual" flags="l" />
		</device>
		
		<key id="KEY_LEFT" mapto="seekBack" flags="m" />
		<key id="KEY_RIGHT" mapto="seekFwd" flags="m" />

		<key id="KEY_OK" mapto="unPauseService" flags="m" />
		
		<key id="KEY_1" mapto="seekdef:1" flags="m" />
		<key id="KEY_3" mapto="seekdef:3" flags="m" />
		<key id="KEY_4" mapto="seekdef:4" flags="m" />
		<key id="KEY_6" mapto="seekdef:6" flags="m" />
		<key id="KEY_7" mapto="seekdef:7" flags="m" />
		<key id="KEY_9" mapto="seekdef:9" flags="m" />
	</map>

	<map context="MediaPlayerSeekActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="seekBack" flags="b" />
			<key id="KEY_F4" mapto="seekFwd" flags="b" />
			<key id="KEY_F1" mapto="seekBackManual" flags="l" />
			<key id="KEY_F4" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_RED" mapto="seekBack" flags="b" />
			<key id="KEY_BLUE" mapto="seekFwd" flags="b" />
			<key id="KEY_RED" mapto="seekBackManual" flags="l" />
			<key id="KEY_BLUE" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PREVIOUSSONG" mapto="seekBack" flags="b" />
			<key id="KEY_NEXTSONG" mapto="seekFwd" flags="b" />
			<key id="KEY_PREVIOUSSONG" mapto="seekBackManual" flags="l" />
			<key id="KEY_NEXTSONG" mapto="seekFwdManual" flags="l" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_REWIND" mapto="seekBack" flags="b" />
			<key id="KEY_FASTFORWARD" mapto="seekFwd" flags="b" />
			<key id="KEY_REWIND" mapto="seekBackManual" flags="l" />
			<key id="KEY_FASTFORWARD" mapto="seekFwdManual" flags="l" />
		</device>
		
		<key id="KEY_1" mapto="seekdef:1" flags="m" />
		<key id="KEY_3" mapto="seekdef:3" flags="m" />
		<key id="KEY_4" mapto="seekdef:4" flags="m" />
		<key id="KEY_6" mapto="seekdef:6" flags="m" />
		<key id="KEY_7" mapto="seekdef:7" flags="m" />
		<key id="KEY_9" mapto="seekdef:9" flags="m" />
	</map>

	<map context="InfobarTimeshiftActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F3" mapto="timeshiftStart" flags="b" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PLAY" mapto="timeshiftStart" flags="m" />
			<key id="KEY_TV" mapto="timeshiftStop" flags="m" />
			<key id="KEY_STOP" mapto="timeshiftStop" flags="m" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_YELLOW" mapto="timeshiftStart" flags="b" />
			<key id="KEY_TV" mapto="timeshiftStop" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_YELLOW" mapto="timeshiftStart" flags="m" />
			<key id="KEY_PAUSE" mapto="timeshiftStart" flags="m" />
			<key id="KEY_TV" mapto="timeshiftStop" flags="m" />
			<key id="KEY_STOP" mapto="timeshiftStop" flags="m" />
		</device>
	</map>

	<map context="InfobarTimeshiftActivateActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="timeshiftActivateEnd" flags="b" />
			<key id="KEY_F3" mapto="timeshiftActivateEndAndPause" flags="b" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_RED" mapto="timeshiftActivateEnd" flags="b" />
			<key id="KEY_YELLOW" mapto="timeshiftActivateEndAndPause" flags="b" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PREVIOUSSONG" mapto="timeshiftActivateEnd" flags="m" />
			<key id="KEY_PLAY" mapto="timeshiftActivateEndAndPause" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_REWIND" mapto="timeshiftActivateEnd" flags="m" />
			<key id="KEY_PAUSE" mapto="timeshiftActivateEndAndPause" flags="m" />
		</device>
	</map>

	<map context="MovieSelectionActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_SPACE" mapto="contextMenu" flags="m" />
		</device>
		<key id="KEY_MENU" mapto="contextMenu" flags="m" />
		<key id="KEY_INFO" mapto="showEventInfo" flags="m" />
	</map>

	<map context="InfobarMovieListActions">
		<key id="KEY_UP" mapto="up" flags="m" />
		<key id="KEY_DOWN" mapto="down" flags="m" />
		<key id="KEY_VIDEO" mapto="movieList" flags="m" />
		<device name="compatible: pcKeyboard; dreambox ir keyboard">
			<key id="KEY_F8" mapto="movieList" flags="m" />
		</device>
	</map>

	<map context="MoviePlayerActions">
		<device name="dreambox remote control (native)">
			<key id="KEY_TV" mapto="leavePlayer" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_TV" mapto="leavePlayer" flags="m" />
			<key id="KEY_STOP" mapto="leavePlayer" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_TV" mapto="leavePlayer" flags="m" />
			<key id="KEY_STOP" mapto="leavePlayer" flags="m" />
		</device>
	</map>
	
	<map context="InfobarCueSheetActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_TAB" mapto="toggleMark" flags="m" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_PREVIOUS" mapto="jumpPreviousMark" flags="m" />
			<key id="KEY_NEXT" mapto="jumpNextMark" flags="m" />
			<key id="KEY_0" mapto="toggleMark" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PREVIOUS" mapto="jumpPreviousMark" flags="m" />
			<key id="KEY_0" mapto="toggleMark" flags="m" />
			<key id="KEY_NEXT" mapto="jumpNextMark" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_PREVIOUSSONG" mapto="jumpPreviousMark" flags="m" />
			<key id="KEY_TAB" mapto="toggleMark" flags="m" />
			<key id="KEY_NEXTSONG" mapto="jumpNextMark" flags="m" />
		</device>
	</map>
	
	<map context="MediaPlayerCueSheetActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_TAB" mapto="toggleMark" flags="m" />
			<key id="KEY_F3" mapto="toggleMark" flags="b" />
		</device>
		<device name="dreambox remote control (native)">
			<key id="KEY_0" mapto="toggleMark" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_0" mapto="toggleMark" flags="m" />
			<key id="KEY_YELLOW" mapto="toggleMark" flags="b" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_TAB" mapto="toggleMark" flags="m" />
		</device>
	</map>

	<map context="VirtualKeyboardActions">
		<key id="KEY_TEXT" mapto="showVirtualKeyboard" flags="m" />
	</map>
	
	<map context="InfobarTeletextActions">
		<key id="KEY_TEXT" mapto="startTeletext" flags="m" />
	</map>

	<map context="InfobarHbbtvActions">
		<key id="KEY_RED" mapto="hbbtvAutostart" flags="m" />
	</map>

	<map context="InfobarRdsActions">
		<key id="KEY_TEXT" mapto="startRassInteractive" flags="m" />
	</map>

	<map context="RassInteractiveActions">
		<key id="KEY_LEFT" mapto="prevSubPage" flags="mr" />
		<key id="KEY_RIGHT" mapto="nextSubPage" flags="mr" />
		<key id="KEY_UP" mapto="prevPage" flags="mr" />
		<key id="KEY_DOWN" mapto="nextPage" flags="mr" />
		<key id="KEY_EXIT" mapto="exit" flags="m" />
		<key id="KEY_ESC" mapto="exit" flags="m" />
	</map>

	<map context="ChannelSelectBaseActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="showAllServices" flags="m" />
			<key id="KEY_F2" mapto="showSatellites" flags="m" />
			<key id="KEY_F3" mapto="showProviders" flags="m" />
			<key id="KEY_F4" mapto="showFavourites" flags="m" />
		</device>
		<key id="KEY_RED" mapto="showAllServices" flags="m" />
		<key id="KEY_GREEN" mapto="showSatellites" flags="m" />
		<key id="KEY_YELLOW" mapto="showProviders" flags="m" />
		<key id="KEY_BLUE" mapto="showFavourites" flags="m" />
		<key id="KEY_CHANNELUP" mapto="nextBouquet" flags="m" />
		<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
		<key id="KEY_PREVIOUS" mapto="prevMarker" flags="m" />
		<key id="KEY_NEXT" mapto="nextMarker" flags="m" />
		<key id="KEY_BACK" mapto="prevMarker" flags="m" />
		<key id="KEY_FORWARD" mapto="nextMarker" flags="m" />
		<key id="KEY_DOWN" mapto="selectServiceDown" flags="mr" />
		<key id="KEY_UP" mapto="selectServiceUp" flags="mr" />
		<key id="KEY_RIGHT" mapto="selectServicePageDown" flags="mr" />
		<key id="KEY_LEFT" mapto="selectServicePageUp" flags="mr" />
	</map>

	<map context="ChannelSelectEPGActions">
		<key id="KEY_INFO" mapto="showEPGList" flags="m" />
	</map>

	<map context="ChannelSelectEditActions">
		<key id="KEY_MENU" mapto="contextMenu" flags="m" />
		<device name="compatible: pcKeyboard">
			<key id="KEY_SPACE" mapto="contextMenu" flags="m" />
		</device>
	</map>

	<map context="TvRadioActions">
		<key id="KEY_TV" mapto="keyTV" flags="m" />
		<key id="KEY_RADIO" mapto="keyRadio" flags="m" />
	</map>

	<map context="TimerEditActions">
		<key id="KEY_INFO" mapto="log" flags="m" />
	</map>
	
	<map context="EPGSelectActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="red" flags="m" />
			<key id="KEY_F2" mapto="timerAdd" flags="m" />
			<key id="KEY_F3" mapto="yellow" flags="mr" />
			<key id="KEY_F4" mapto="blue" flags="mr" />
			<key id="KEY_SPACE" mapto="input_date_time" flags="m" />
		</device>
		<key id="KEY_RED" mapto="red" flags="m" />
		<key id="KEY_GREEN" mapto="timerAdd" flags="m" />
		<key id="KEY_YELLOW" mapto="yellow" flags="mr" />
		<key id="KEY_BLUE" mapto="blue" flags="mr" />
		<key id="KEY_INFO" mapto="info" flags="m" />
		<key id="KEY_MENU" mapto="input_date_time" flags="m" />
		<key id="KEY_CHANNELUP" mapto="nextBouquet" flags="m" />
		<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
		<key id="KEY_NEXT" mapto="nextService" flags="m" />
		<key id="KEY_PREVIOUS" mapto="prevService" flags="m" />
	</map>

	<map context="EventViewActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="openSimilarList" flags="m" />
			<key id="KEY_F2" mapto="timerAdd" flags="m" />
		</device>
		<key id="KEY_UP" mapto="pageUp" flags="mr" />
		<key id="KEY_DOWN" mapto="pageDown" flags="mr" />
		<key id="KEY_LEFT" mapto="prevEvent" flags="mr" />
		<key id="KEY_RIGHT" mapto="nextEvent" flags="mr" />
		<key id="KEY_RED" mapto="openSimilarList" flags="m" />
		<key id="KEY_GREEN" mapto="timerAdd" flags="m" />
		<key id="KEY_INFO" mapto="cancel" flags="m" />
	</map>
	
	<map context="EventViewEPGActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F3" mapto="openSingleServiceEPG" flags="m" />
			<key id="KEY_F4" mapto="openMultiServiceEPG" flags="m" />
		</device>
		<key id="KEY_YELLOW" mapto="openSingleServiceEPG" flags="m" />
		<key id="KEY_BLUE" mapto="openMultiServiceEPG" flags="m" />
	</map>

	<map context="OkCancelActions">
		<key id="\x0a" mapto="ok" flags="m" />
		<key id="\x1b" mapto="cancel" flags="m" />

		<!-- use this on rcu, ok? -->
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_EXIT" mapto="cancel" flags="m" />

		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_ESC" mapto="cancel" flags="m" />
	</map>
	
	<map context="DirectionActions">
		<key id="KEY_UP" mapto="up" flags="m" />
		<key id="KEY_DOWN" mapto="down" flags="m" />
		<key id="KEY_LEFT" mapto="left" flags="m" />
		<key id="KEY_RIGHT" mapto="right" flags="m" />

		<key id="KEY_UP" mapto="upRepeated" flags="r" />
		<key id="KEY_DOWN" mapto="downRepeated" flags="r" />
		<key id="KEY_LEFT" mapto="leftRepeated" flags="r" />
		<key id="KEY_RIGHT" mapto="rightRepeated" flags="r" />
		
		<key id="KEY_LEFT" mapto="leftUp" flags="b" />
		<key id="KEY_RIGHT" mapto="rightUp" flags="b" />
		<key id="KEY_UP" mapto="upUp" flags="b" />
		<key id="KEY_DOWN" mapto="downUp" flags="b" />
	</map>
	
	<map context="ColorActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="red" flags="m" />
			<key id="KEY_F2" mapto="green" flags="m" />
			<key id="KEY_F3" mapto="yellow" flags="m" />
			<key id="KEY_F4" mapto="blue" flags="m" />
		</device>
		<key id="KEY_RED" mapto="red" flags="m" />
		<key id="KEY_GREEN" mapto="green" flags="m" />
		<key id="KEY_YELLOW" mapto="yellow" flags="m" />
		<key id="KEY_BLUE" mapto="blue" flags="m" />
	</map>

	<map context="MsgBoxActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="cancel" flags="m" />
			<key id="KEY_F2" mapto="alwaysOK" flags="m" />
		</device>
		<key id="KEY_GREEN" mapto="alwaysOK" flags="m" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_RED" mapto="cancel" flags="m" />
		<key id="KEY_EXIT" mapto="cancel" flags="m" />
		<key id="KEY_ESC" mapto="cancel" flags="m" />
	</map>

	<map context="WindowActions">
		
	</map>
	
	<map context="HelpActions">
		<key id="KEY_HELP" mapto="displayHelp" flags="m" />
	</map>

	<map context="ShortcutActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="red" flags="mr" />
			<key id="KEY_F2" mapto="green" flags="mr" />
			<key id="KEY_F3" mapto="yellow" flags="mr" />
			<key id="KEY_F4" mapto="blue" flags="mr" />
		</device>
		<key id="KEY_RED" mapto="red" flags="mr" />
		<key id="KEY_GREEN" mapto="green" flags="mr" />
		<key id="KEY_YELLOW" mapto="yellow" flags="mr" />
		<key id="KEY_BLUE" mapto="blue" flags="mr" />
	</map>
	<map context="StandbyActions">
		<key id="KEY_POWER" mapto="power" flags="m" />
	</map>
	
	<map context="SleepTimerEditorActions">
		<device name="compatible: pcKeyboard">
			<key id="KEY_F1" mapto="disableTimer" flags="mr" />
			<key id="KEY_F2" mapto="toggleAction" flags="mr" />
			<key id="KEY_F3" mapto="toggleAsk" flags="mr" />
			<key id="KEY_F4" mapto="useServiceTime" flags="mr" />
		</device>
		<key id="KEY_OK" mapto="select" flags="m" />
		<key id="KEY_ENTER" mapto="select" flags="m" />
		<key id="KEY_KPENTER" mapto="select" flags="m" />
		<key id="KEY_EXIT" mapto="exit" flags="m" />
		<key id="KEY_ESC" mapto="exit" flags="m" />
		<key id="KEY_1" mapto="1" flags="m" />
		<key id="KEY_2" mapto="2" flags="m" />
		<key id="KEY_3" mapto="3" flags="m" />
		<key id="KEY_4" mapto="4" flags="m" />
		<key id="KEY_5" mapto="5" flags="m" />
		<key id="KEY_6" mapto="6" flags="m" />
		<key id="KEY_7" mapto="7" flags="m" />
		<key id="KEY_8" mapto="8" flags="m" />
		<key id="KEY_9" mapto="9" flags="m" />
		<key id="KEY_0" mapto="0" flags="m" />
		<key id="KEY_LEFT" mapto="selectLeft" flags="mr" />
		<key id="KEY_RIGHT" mapto="selectRight" flags="mr" />
		<key id="KEY_RED" mapto="disableTimer" flags="mr" />
		<key id="KEY_GREEN" mapto="toggleAction" flags="mr" />
		<key id="KEY_YELLOW" mapto="toggleAsk" flags="mr" />
		<key id="KEY_BLUE" mapto="useServiceTime" flags="mr" />
	</map>	
	
	<map context="CiSelectionActions">
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
	</map>

	<map context="PiPSetupActions">
		<key id="KEY_UP" mapto="up" flags="mr" />
		<key id="KEY_DOWN" mapto="down" flags="mr" />
		<key id="KEY_LEFT" mapto="left" flags="mr" />
		<key id="KEY_RIGHT" mapto="right" flags="mr" />
		<key id="KEY_EXIT" mapto="cancel" flags="m" />
		<key id="KEY_ESC" mapto="cancel" flags="m" />
		<key id="KEY_ENTER" mapto="ok" flags="m" />
		<key id="KEY_KPENTER" mapto="ok" flags="m" />
		<key id="KEY_OK" mapto="ok" flags="m" />
		<key id="KEY_CHANNELUP" mapto="size+" flags="mr" />
		<key id="KEY_CHANNELDOWN" mapto="size-" flags="mr" />
	</map>
	
	<map context="MediaPlayerActions">
		<device name="dreambox remote control (native)">
			<key id="KEY_YELLOW" mapto="pause" flags="m" />
			<key id="KEY_GREEN" mapto="play" flags="m" />
			<key id="KEY_TV" mapto="stop" flags="b" />
			<key id="KEY_TV" mapto="shift_stop" flags="l" />
			<key id="KEY_RADIO" mapto="shift_record" flags="l" />
			<key id="KEY_PREVIOUS" mapto="previous" flags="m" />
			<key id="KEY_NEXT" mapto="next" flags="m" />
		</device>
		<device name="dreambox advanced remote control (native)">
			<key id="KEY_PLAY" mapto="pause" flags="m" />
			<key id="KEY_STOP" mapto="stop" flags="b" />
			<key id="KEY_STOP" mapto="shift_stop" flags="l" />
			<key id="KEY_RECORD" mapto="shift_record" flags="l" />
			<key id="KEY_PREVIOUS" mapto="previous" flags="m" />
			<key id="KEY_NEXT" mapto="next" flags="m" />
			<key id="KEY_RED" mapto="previous" flags="m" />
			<key id="KEY_BLUE" mapto="next" flags="m" />
		</device>
		<device name="dreambox ir keyboard">
			<key id="KEY_PAUSE" mapto="pause" flags="m" />
			<key id="KEY_PLAY" mapto="play" flags="m" />
			<key id="KEY_STOP" mapto="stop" flags="b" />
			<key id="KEY_STOP" mapto="shift_stop" flags="l" />
			<key id="KEY_RECORD" mapto="shift_record" flags="l" />
			<key id="KEY_PREVIOUSSONG" mapto="previous" flags="m" />
			<key id="KEY_NEXTSONG" mapto="next" flags="m" />
		</device>
		<device name="compatible: pcKeyboard">
			<key id="KEY_SPACE" mapto="menu" flags="m" />
			<key id="KEY_F1" mapto="previous" flags="m" />
			<key id="KEY_F2" mapto="play" flags="m" />
			<key id="KEY_F3" mapto="pause" flags="m" />
			<key id="KEY_F4" mapto="next" flags="m" />
		</device>
		<key id="KEY_MENU" mapto="menu" flags="m" />
		<key id="KEY_2" mapto="skipListbegin" flags="m" />
		<key id="KEY_8" mapto="skipListend" flags="m" />
		<key id="KEY_CHANNELUP" mapto="nextBouquet" flags="m" />
		<key id="KEY_CHANNELDOWN" mapto="prevBouquet" flags="m" />
		<key id="KEY_VIDEO" mapto="delete" flags="m" />
		<key id="KEY_TEXT" mapto="subtitles" flags="m" />
	</map>
</keymap>
