Action

From LoTROInterface Wiki

(Difference between revisions)
Jump to: navigation, search
(Reordered to match their order in the options panel in the client)
(Apparently the enter key still isn't in the enum.)
(22 intermediate revisions not shown.)
Line 1: Line 1:
{{API_Breadcrumb|[[:Category:API_Reference|API Reference]] > [[Turbine.UI.Lotro]].'''Action'''}}
{{API_Breadcrumb|[[:Category:API_Reference|API Reference]] > [[Turbine.UI.Lotro]].'''Action'''}}
-
__NOTOC__
 
List of available "key actions" that can be detected by plugins.  They are passed in the "Action" argument to [[KeyDown]] and [[KeyUp]] events.
List of available "key actions" that can be detected by plugins.  They are passed in the "Action" argument to [[KeyDown]] and [[KeyUp]] events.
Line 225: Line 224:
{{API_Row|'''ToggleHiddenDragBoxes'''|Enter/exit the UI element repositioning mode.}}
{{API_Row|'''ToggleHiddenDragBoxes'''|Enter/exit the UI element repositioning mode.}}
{{API_Row|'''ToggleQuickslotLock'''|}}
{{API_Row|'''ToggleQuickslotLock'''|}}
-
{{API_Row|'''ToggleHUD'''|Show/hide the HUD (main user interface overlay).}}
+
{{API_Row|'''UI_Toggle'''|Show/hide the HUD (main user interface overlay).}}
{{API_Row|'''Logout'''|}}
{{API_Row|'''Logout'''|}}
{{API_Row|'''VoiceChat_Talk'''|}}
{{API_Row|'''VoiceChat_Talk'''|}}
Line 241: Line 240:
{{API_Row|'''MusicEndSong'''|}}
{{API_Row|'''MusicEndSong'''|}}
{{API_Row|'''Music_C2'''|}}
{{API_Row|'''Music_C2'''|}}
-
{{API_Row|'''Music_Db2'''|}}
+
{{API_Row|'''Music_Db2'''|C#2}}
{{API_Row|'''Music_D2'''|}}
{{API_Row|'''Music_D2'''|}}
-
{{API_Row|'''Music_Eb2'''|}}
+
{{API_Row|'''Music_Eb2'''|D#2}}
{{API_Row|'''Music_E2'''|}}
{{API_Row|'''Music_E2'''|}}
{{API_Row|'''Music_F2'''|}}
{{API_Row|'''Music_F2'''|}}
-
{{API_Row|'''Music_Gb2'''|}}
+
{{API_Row|'''Music_Gb2'''|F#2}}
{{API_Row|'''Music_G2'''|}}
{{API_Row|'''Music_G2'''|}}
-
{{API_Row|'''Music_Ab2'''|}}
+
{{API_Row|'''Music_Ab2'''|G#2}}
{{API_Row|'''Music_A2'''|}}
{{API_Row|'''Music_A2'''|}}
-
{{API_Row|'''Music_Bb2'''|}}
+
{{API_Row|'''Music_Bb2'''|A#2}}
{{API_Row|'''Music_B2'''|}}
{{API_Row|'''Music_B2'''|}}
{{API_Row|'''Music_C3'''|}}
{{API_Row|'''Music_C3'''|}}
-
{{API_Row|'''Music_Db3'''|}}
+
{{API_Row|'''Music_Db3'''|C#3}}
{{API_Row|'''Music_D3'''|}}
{{API_Row|'''Music_D3'''|}}
-
{{API_Row|'''Music_Eb3'''|}}
+
{{API_Row|'''Music_Eb3'''|D#3}}
{{API_Row|'''Music_E3'''|}}
{{API_Row|'''Music_E3'''|}}
{{API_Row|'''Music_F3'''|}}
{{API_Row|'''Music_F3'''|}}
-
{{API_Row|'''Music_Gb3'''|}}
+
{{API_Row|'''Music_Gb3'''|F#3}}
{{API_Row|'''Music_G3'''|}}
{{API_Row|'''Music_G3'''|}}
-
{{API_Row|'''Music_Ab3'''|}}
+
{{API_Row|'''Music_Ab3'''|G#3}}
{{API_Row|'''Music_A3'''|}}
{{API_Row|'''Music_A3'''|}}
-
{{API_Row|'''Music_Bb3'''|}}
+
{{API_Row|'''Music_Bb3'''|A#3}}
{{API_Row|'''Music_B3'''|}}
{{API_Row|'''Music_B3'''|}}
{{API_Row|'''Music_C4'''|}}
{{API_Row|'''Music_C4'''|}}
-
{{API_Row|'''Music_Db4'''|}}
+
{{API_Row|'''Music_Db4'''|C#4}}
{{API_Row|'''Music_D4'''|}}
{{API_Row|'''Music_D4'''|}}
-
{{API_Row|'''Music_Eb4'''|}}
+
{{API_Row|'''Music_Eb4'''|D#4}}
{{API_Row|'''Music_E4'''|}}
{{API_Row|'''Music_E4'''|}}
{{API_Row|'''Music_F4'''|}}
{{API_Row|'''Music_F4'''|}}
-
{{API_Row|'''Music_Gb4'''|}}
+
{{API_Row|'''Music_Gb4'''|F#4}}
{{API_Row|'''Music_G4'''|}}
{{API_Row|'''Music_G4'''|}}
-
{{API_Row|'''Music_Ab4'''|}}
+
{{API_Row|'''Music_Ab4'''|G#4}}
{{API_Row|'''Music_A4'''|}}
{{API_Row|'''Music_A4'''|}}
-
{{API_Row|'''Music_Bb4'''|}}
+
{{API_Row|'''Music_Bb4'''|A#4}}
{{API_Row|'''Music_B4'''|}}
{{API_Row|'''Music_B4'''|}}
{{API_Row|'''Music_C5'''|}}
{{API_Row|'''Music_C5'''|}}
Line 328: Line 327:
{{API_Row|(Toggle first/third person)|Does not generate KeyUp / KeyDown events.}}
{{API_Row|(Toggle first/third person)|Does not generate KeyUp / KeyDown events.}}
{{API_Row|(Toggle target lock-on person)|Does not generate KeyUp / KeyDown events.}}
{{API_Row|(Toggle target lock-on person)|Does not generate KeyUp / KeyDown events.}}
 +
|}
 +
 +
===Other actions===
 +
The actions in this section do not correspond to items in the "Key Mapping" panel in the game options.
 +
{| {{API_Header}}
 +
{{API_Row|'''CameraInstantMouseLook'''|Mouse look (usually the left mouse button).}}
 +
{{API_Row|'''Escape'''|Escape key.|}}
 +
{{API_Row|'''Start_Command'''|When the user presses the "/" key to select the chat window and start entering a chat command.}}
 +
{{API_Row|'''ToggleAlertOverflow'''|When the user clicks the "View Pending Alerts" icon with the mouse.}}
 +
{{API_Row|'''ToggleBioPanel'''|When the user clicks the "Biography" button in the Character panel.}}
 +
{{API_Row|'''TogglePVPPanel'''|When the user clicks the "The War" button in the Character panel.}}
 +
{{API_Row|'''VendorFullStack'''|When the user holds down the SHIFT key when interacting with a vendor.}}
 +
{{API_Row|'''VendorQuantity'''|When the user holds down the ALT key when interacting with a vendor.}}
 +
{{API_Row|'''ToggleStackDisplay'''|When the user holds down the TAB key when interacting with a vendor.}}
|}
|}
===Undocumented values===
===Undocumented values===
-
The following entries in the Turbine.UI.Lotro.Action enumeration apparently cannot be triggered.  They may be outdated, or used internally by developers.
+
The following actions can be detected with [[KeyDown]] / [[KeyUp]] events, but do not have a corresponding entry in the Turbine.UI.Lotro.Action enumeration:
 +
 
 +
{| {{API_Header}}
 +
{{API_Row|'''RightMouseButton'''|Right mouse button}}
 +
{{API_Row|'''ToggleDebugHUD'''|Toggle the FPS meter display on/off.}}
 +
{{API_Row|'''ToggleDebugConsole'''|Toggle the debug console on/off.}}
 +
{{API_Row|'''BackspaceKey'''|Backspace key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''EnterKey'''|Enter key / chat window focus (only generates a KeyDown event, and only sometimes).|}}
 +
{{API_Row|'''CursorPreviousLine'''|Up arrow key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorCharRight'''|Right arrow key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorCharLeft'''|Left arrow key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorNextLine'''|Down arrow key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorPreviousPage'''|Cursor to previous page (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorNextPage'''|Cursor to next page (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorStartOfLine'''|Cursor to start of line (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorEndOfLine'''|Cursor to end of line (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorWordLeft'''|Cursor to word left (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CursorWordRight'''|Cursor to word right (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''DeleteKey'''|Delete key (only generates a KeyUp event, and only when a text box is selected).}}
 +
{{API_Row|'''CutText'''|Cut text to clipboard.}}
 +
{{API_Row|'''CopyText'''|Copy text to clipboard.}}
 +
{{API_Row|'''PasteText'''|Paste text from clipboard.}}
 +
|}
 +
 
 +
You can add the above missing values to the enumeration with the following Lua code:
 +
 
 +
{{API_Example|Adding missing enumeration values|
 +
{{API_Comment|-- Adding missing values to the Turbine.UI.Lotro.Action enumeration:}}
 +
{{API_Whitespace|<br>}}{{API_Keyword|for}} key{{API_Operator|,}} value {{API_Keyword|in}} {{API_Keyword|pairs}}{{API_Operator|&#40;}}{{API_Operator|&#123;}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}RightMouseButton {{API_Operator|&#61;}} {{API_Literal|19}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}ToggleDebugHUD {{API_Operator|&#61;}} {{API_Literal|42}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}ToggleDebugConsole {{API_Operator|&#61;}} {{API_Literal|43}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}BackspaceKey {{API_Operator|&#61;}} {{API_Literal|99}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}EnterKey {{API_Operator|&#61;}} {{API_Literal|162}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorPreviousLine {{API_Operator|&#61;}} {{API_Literal|29}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorCharRight {{API_Operator|&#61;}} {{API_Literal|108}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorCharLeft {{API_Operator|&#61;}} {{API_Literal|127}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorNextLine {{API_Operator|&#61;}} {{API_Literal|113}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorPreviousPage {{API_Operator|&#61;}} {{API_Literal|146}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorNextPage {{API_Operator|&#61;}} {{API_Literal|49}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorStartOfLine {{API_Operator|&#61;}} {{API_Literal|58}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorEndOfLine {{API_Operator|&#61;}} {{API_Literal|57}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorWordLeft {{API_Operator|&#61;}} {{API_Literal|163}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CursorWordRight {{API_Operator|&#61;}} {{API_Literal|37}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}DeleteKey {{API_Operator|&#61;}} {{API_Literal|75}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CutText {{API_Operator|&#61;}} {{API_Literal|8}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}CopyText {{API_Operator|&#61;}} {{API_Literal|170}}{{API_Operator|,}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}PasteText {{API_Operator|&#61;}} {{API_Literal|100}}{{API_Operator|,}}
 +
{{API_Whitespace|<br>}}{{API_Operator|&#125;}}{{API_Operator|&#41;}} {{API_Keyword|do}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}{{API_Keyword|if}} {{API_Operator|(}}Turbine{{API_Operator|.}}UI{{API_Operator|.}}Lotro{{API_Operator|.}}Action{{API_Operator|[}}key{{API_Operator|]}} {{API_Operator|&#61;}}{{API_Operator|&#61;}} {{API_Keyword|nil}}{{API_Operator|)}} {{API_Keyword|then}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}}Turbine{{API_Operator|.}}UI{{API_Operator|.}}Lotro{{API_Operator|.}}Action{{API_Operator|[}}key{{API_Operator|]}} {{API_Operator|&#61;}} value{{API_Operator|;}}
 +
{{API_Whitespace|<br> &nbsp;&nbsp;&nbsp;}}{{API_Keyword|end}}
 +
{{API_Whitespace|<br>}}{{API_Keyword|end}}
 +
}}
 +
 
 +
===Inert values===
 +
The following entries in the Turbine.UI.Lotro.Action enumeration apparently cannot be triggered.  They may be outdated, or used internally by developers.  In some cases, you can assign keys to them in lotro.keymap[https://lotro-wiki.com/index.php/User:Taz/Scratchpad-lotro.keymap_Reference] and receive the KeyUp / KeyDown events, even though the client does nothing with them.
{| {{API_Header}}
{| {{API_Header}}
{{API_Row|'''SelectionNextFellow'''|}}
{{API_Row|'''SelectionNextFellow'''|}}
Line 340: Line 409:
{{API_Row|'''MainMenu'''|}}
{{API_Row|'''MainMenu'''|}}
{{API_Row|'''QuickSlot_Chat'''|}}
{{API_Row|'''QuickSlot_Chat'''|}}
-
{{API_Row|'''Show_Names'''|}}
 
-
{{API_Row|'''Start_Command'''|}}
 
{{API_Row|'''SystemMenu'''|}}
{{API_Row|'''SystemMenu'''|}}
-
{{API_Row|'''ToggleAlertOverflow'''|}}
 
-
{{API_Row|'''ToggleBioPanel'''|}}
 
{{API_Row|'''ToggleComboUI'''|}}
{{API_Row|'''ToggleComboUI'''|}}
{{API_Row|'''ToggleCraftingProf1Panel'''|}}
{{API_Row|'''ToggleCraftingProf1Panel'''|}}
Line 350: Line 415:
{{API_Row|'''ToggleCraftingProf3Panel'''|}}
{{API_Row|'''ToggleCraftingProf3Panel'''|}}
{{API_Row|'''ToggleGambitPanel'''|}}
{{API_Row|'''ToggleGambitPanel'''|}}
 +
{{API_Row|'''ToggleHUD'''|}}
{{API_Row|'''ToggleInputPanel'''|}}
{{API_Row|'''ToggleInputPanel'''|}}
{{API_Row|'''ToggleMithrilCoinsAuctionUI'''|}}
{{API_Row|'''ToggleMithrilCoinsAuctionUI'''|}}
{{API_Row|'''ToggleMithrilCoinsMenu'''|}}
{{API_Row|'''ToggleMithrilCoinsMenu'''|}}
{{API_Row|'''ToggleMountedXpUI'''|}}
{{API_Row|'''ToggleMountedXpUI'''|}}
-
{{API_Row|'''TogglePVPPanel'''|}}
 
{{API_Row|'''TogglePluginManagerUI'''|}}
{{API_Row|'''TogglePluginManagerUI'''|}}
{{API_Row|'''ToggleQuestJournal'''|}}
{{API_Row|'''ToggleQuestJournal'''|}}
-
{{API_Row|'''ToggleStackDisplay'''|}}
 
{{API_Row|'''ToggleStatusbarPanel'''|}}
{{API_Row|'''ToggleStatusbarPanel'''|}}
{{API_Row|'''ToggleThreatTrackerPanel'''|}}
{{API_Row|'''ToggleThreatTrackerPanel'''|}}
Line 363: Line 427:
{{API_Row|'''ToggleToolbarPanel'''|}}
{{API_Row|'''ToggleToolbarPanel'''|}}
{{API_Row|'''ToggleWorldJoin'''|}}
{{API_Row|'''ToggleWorldJoin'''|}}
-
{{API_Row|'''UI_Toggle'''|}}
 
{{API_Row|'''Undefined'''|}}
{{API_Row|'''Undefined'''|}}
-
{{API_Row|'''VendorFullStack'''|}}
 
-
{{API_Row|'''VendorQuantity'''|}}
 
|}
|}
-
 
-
===Undocumented values===
 
-
The following actions can be detected with [[KeyDown]] / [[KeyUp]] events, but do not have a corresponding entry in the Turbine.UI.Lotro.Action enumeration:
 
-
 
-
{| {{API_Row|'''Value'''|'''Description'''}}
 
-
{{API_Row|19|Right mouse button|}}
 
-
{{API_Row|99|Backspace key (only generates a KeyUp event, and only when a text box is selected).|}}
 
-
{{API_Row|162|Enter key / chat window focus (only generates a KeyDown event, and only when a text box is not selected).|}}
 
-
|}
 
-
 
==Remarks==
==Remarks==

Revision as of 02:58, 30 June 2019

List of available "key actions" that can be detected by plugins. They are passed in the "Action" argument to KeyDown and KeyUp events.

The items are shown in the order in which they appear in the "Key Mapping" panel in the game.

Contents

Movement

None of the key actions in this section can be detected by plugins, but they are listed here for completeness.

Name Description
(Move forward) Does not generate KeyUp / KeyDown events.
(Move forward (camera)) Does not generate KeyUp / KeyDown events; however the right mouse button can be detected; see undocumented items below.
(Rotate camera left) Does not generate KeyUp / KeyDown events.
(Rotate camera right) Does not generate KeyUp / KeyDown events.
(Pitch camera up) Does not generate KeyUp / KeyDown events.
(Pitch camera down) Does not generate KeyUp / KeyDown events.
(Pan camera in) Does not generate KeyUp / KeyDown events.
(Pan camera out) Does not generate KeyUp / KeyDown events.
(Toggle first/third person) Does not generate KeyUp / KeyDown events.
(Toggle target lock-on person) Does not generate KeyUp / KeyDown events.

Quickslots

Name Description
QuickslotPageDown
QuickslotPageUp
Quickslot_1 Main quickslot bar, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_2
Quickslot_3
Quickslot_4
Quickslot_5
Quickslot_6
Quickslot_7
Quickslot_8
Quickslot_9
Quickslot_10
Quickslot_11
Quickslot_12 Main quickslot bar, slot 12 hotkey pressed (generates KeyDown event only).

Quickslot Bar 1

Name Description
Quickbar1Visibility Shows quickslot bar 1 (if "Always show bar 1" is not enabled).
Quickslot_13 Quickslot bar 1, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_14
Quickslot_15
Quickslot_16
Quickslot_17
Quickslot_18
Quickslot_19
Quickslot_20
Quickslot_21
Quickslot_22
Quickslot_23
Quickslot_24 Quickslot bar 1, slot 12 hotkey pressed (generates KeyDown event only).

Quickslot Bar 2

Name Description
Quickbar2Visibility Shows quickslot bar 2 (if "Always show bar 2" is not enabled).
Quickslot_25 Quickslot bar 2, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_26
Quickslot_27
Quickslot_28
Quickslot_29
Quickslot_30
Quickslot_31
Quickslot_32
Quickslot_33
Quickslot_34
Quickslot_35
Quickslot_36 Quickslot bar 3, slot 12 hotkey pressed (generates KeyDown event only).

Quickslot Bar 3

Name Description
Quickbar3Visibility Shows quickslot bar 3 (if "Always show bar 3" is not enabled).
Quickslot_37 Quickslot bar 3, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_38
Quickslot_39
Quickslot_40
Quickslot_41
Quickslot_42
Quickslot_43
Quickslot_44
Quickslot_45
Quickslot_46
Quickslot_47
Quickslot_48 Quickslot bar 3, slot 12 hotkey pressed (generates KeyDown event only).

Quickslot Bar 4

Name Description
Quickbar4Visibility Shows quickslot bar 4 (if "Always show bar 4" is not enabled).
Quickslot_49 Quickslot bar 4, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_50
Quickslot_51
Quickslot_52
Quickslot_53
Quickslot_54
Quickslot_55
Quickslot_56
Quickslot_57
Quickslot_58
Quickslot_59
Quickslot_60 Quickslot bar 4, slot 12 hotkey pressed (generates KeyDown event only).

Quickslot Bar 5

Name Description
Quickbar5Visibility Shows quickslot bar 5 (if "Always show bar 5" is not enabled).
Quickslot_61 Quickslot bar 5, slot 1 hotkey pressed (generates KeyDown event only).
Quickslot_62
Quickslot_63
Quickslot_64
Quickslot_65
Quickslot_66
Quickslot_67
Quickslot_68
Quickslot_69
Quickslot_70
Quickslot_71
Quickslot_72 Quickslot bar 5, slot 12 hotkey pressed (generates KeyDown event only).

Selection

Name Description
SelectionSelf
SelectionNearestFoe
SelectionNextFoe
SelectionPreviousFoe
SelectionNextTracked
SelectionPreviousTracked
SelectFellowOne
SelectFellowTwo
SelectFellowThree
SelectFellowFour
SelectFellowFive
SelectFellowSix
AssistFellowTwo Assist fellowship member 2 (i.e. set your target to their target).
AssistFellowThree Assist fellowship member 3 (i.e. set your target to their target).
AssistFellowFour Assist fellowship member 4 (i.e. set your target to their target).
AssistFellowFive Assist fellowship member 5 (i.e. set your target to their target).
AssistFellowSix Assist fellowship member 6 (i.e. set your target to their target).
SelectionNearestFellow
SelectionNearestPlayer
SelectionNextPlayer
SelectionPreviousPlayer
SelectionNearestCreature Select nearest NPC.
SelectionNextCreature Select next NPC.
SelectionPreviousCreature Select previous NPC.
SelectionNearestItem
SelectionNextItem
SelectionPreviousItem
PreviousSelection
PreviousAttacker
SelectionAssist Assist your current target (i.e. set your target to their target).

Panels

Name Description
ToggleSkillPanel
ToggleTraitPanel
HousingPanel
ToggleCraftingPanel
MapPanel
ToggleJournalPanel
TitlesPanel
ToggleSocialPanel
ToggleBags Toggle the display of all inventory bags.
ToggleBag1 Toggle the display of the first inventory bag.
ToggleBag2 Toggle the display of the second inventory bag.
ToggleBag3 Toggle the display of the third inventory bag.
ToggleBag4 Toggle the display of the fourth inventory bag.
ToggleBag5 Toggle the display of the fifth inventory bag.
ToggleBag6 Toggle the display of the sixth inventory bag.
DressingRoom
ItemLinkToChat
MultiUseItem
ToggleOptionsPanel
ToggleAssistancePanel
ToggleRadar
ToggleQuestPanel
ToggleAccomplishmentPanel Toggle deed log.
ToggleItemAdvancementPanel Toggle legendary items panel.
ToggleMountsPanel
ToggleInstanceFinderPanel
ToggleSkirmishPanel
ToggleMountedCombatUI
ToggleWebStore
ReputationPanel
HobbyPanel
DestinyPointPerksPanel
ToggleSocialFellowingPanel
FriendsPanel
KinshipPanel
RaidPanel
GroupStagePanel
TogglePaperItemPanel Toggle wallet.
ToggleRandomItemRewardUI Toggle Hobbit Presents display.
TogglePendingLoot
TogglePluginManager
ToggleCollectionUI
ToggleFilterUI

Chat

Name Description
ChatModeReply

Miscellaneous

Name Description
QuickSlot_SkillMode Toggle auto-attack.
Use
FollowSelection
FindItems
ToggleBigBattlesUI
ToggleMailUI
Show_Names Toggle floaty names.
ShowDamage Show damage.
CaptureScreenshot
Tooltip_Detach
ToggleHiddenDragBoxes Enter/exit the UI element repositioning mode.
ToggleQuickslotLock
UI_Toggle Show/hide the HUD (main user interface overlay).
Logout
VoiceChat_Talk
ToggleItemSellLock
(Loot all)
DismountRemount
ShowRemoteQuestActions
TrackNearbyQuests
ClearAllFilters

Music

Name Description
ToggleMusicMode
MusicEndSong
Music_C2
Music_Db2 C#2
Music_D2
Music_Eb2 D#2
Music_E2
Music_F2
Music_Gb2 F#2
Music_G2
Music_Ab2 G#2
Music_A2
Music_Bb2 A#2
Music_B2
Music_C3
Music_Db3 C#3
Music_D3
Music_Eb3 D#3
Music_E3
Music_F3
Music_Gb3 F#3
Music_G3
Music_Ab3 G#3
Music_A3
Music_Bb3 A#3
Music_B3
Music_C4
Music_Db4 C#4
Music_D4
Music_Eb4 D#4
Music_E4
Music_F4
Music_Gb4 F#4
Music_G4
Music_Ab4 G#4
Music_A4
Music_Bb4 A#4
Music_B4
Music_C5

Fellowship Manoeuvres

Name Description
FellowshipSkillAssist
TopFellowshipManoeuvre
BottomFellowshipManoeuvre
LeftFellowshipManoeuvre
RightFellowshipManoeuvre

Fellowship Target Marking

Name Description
ShieldMark Fellowship target marking: Shield
SpearMark Fellowship target marking: Spear
ArrowMark Fellowship target marking: Arrow
SunMark Fellowship target marking: Sun
SwordsMark Fellowship target marking: Swords
MoonMark Fellowship target marking: Moon
StarMark Fellowship target marking: Star
ClawMark Fellowship target marking: Claw
SkullMark Fellowship target marking: Skull
LeafMark Fellowship target marking: Leaf

Cosmetic Outfit Selection

Name Description
PresentMainInventory Show actual equipment; do not display any cosmetic outfit.
PresentOutfit1 Wear cosmetic outfit 1.
PresentOutfit2 Wear cosmetic outfit 2.
PresentOutfit3 Wear cosmetic outfit 3.
PresentOutfit4 Wear cosmetic outfit 4.
PresentOutfit5 Wear cosmetic outfit 5.
PresentOutfit6 Wear cosmetic outfit 6.
PresentOutfit7 Wear cosmetic outfit 7.
PresentOutfit8 Wear cosmetic outfit 8.

Camera

None of the key actions in this section can be detected by plugins, but they are listed here for completeness.

Name Description
(Reset camera) Does not generate KeyUp / KeyDown events.
(Rotate camera) Does not generate KeyUp / KeyDown events; however the right mouse button can be detected; see undocumented items below.
(Rotate camera left) Does not generate KeyUp / KeyDown events.
(Rotate camera right) Does not generate KeyUp / KeyDown events.
(Pitch camera up) Does not generate KeyUp / KeyDown events.
(Pitch camera down) Does not generate KeyUp / KeyDown events.
(Pan camera in) Does not generate KeyUp / KeyDown events.
(Pan camera out) Does not generate KeyUp / KeyDown events.
(Toggle first/third person) Does not generate KeyUp / KeyDown events.
(Toggle target lock-on person) Does not generate KeyUp / KeyDown events.

Other actions

The actions in this section do not correspond to items in the "Key Mapping" panel in the game options.

Name Description
CameraInstantMouseLook Mouse look (usually the left mouse button).
Escape Escape key.
Start_Command When the user presses the "/" key to select the chat window and start entering a chat command.
ToggleAlertOverflow When the user clicks the "View Pending Alerts" icon with the mouse.
ToggleBioPanel When the user clicks the "Biography" button in the Character panel.
TogglePVPPanel When the user clicks the "The War" button in the Character panel.
VendorFullStack When the user holds down the SHIFT key when interacting with a vendor.
VendorQuantity When the user holds down the ALT key when interacting with a vendor.
ToggleStackDisplay When the user holds down the TAB key when interacting with a vendor.

Undocumented values

The following actions can be detected with KeyDown / KeyUp events, but do not have a corresponding entry in the Turbine.UI.Lotro.Action enumeration:

Name Description
RightMouseButton Right mouse button
ToggleDebugHUD Toggle the FPS meter display on/off.
ToggleDebugConsole Toggle the debug console on/off.
BackspaceKey Backspace key (only generates a KeyUp event, and only when a text box is selected).
EnterKey Enter key / chat window focus (only generates a KeyDown event, and only sometimes).
CursorPreviousLine Up arrow key (only generates a KeyUp event, and only when a text box is selected).
CursorCharRight Right arrow key (only generates a KeyUp event, and only when a text box is selected).
CursorCharLeft Left arrow key (only generates a KeyUp event, and only when a text box is selected).
CursorNextLine Down arrow key (only generates a KeyUp event, and only when a text box is selected).
CursorPreviousPage Cursor to previous page (only generates a KeyUp event, and only when a text box is selected).
CursorNextPage Cursor to next page (only generates a KeyUp event, and only when a text box is selected).
CursorStartOfLine Cursor to start of line (only generates a KeyUp event, and only when a text box is selected).
CursorEndOfLine Cursor to end of line (only generates a KeyUp event, and only when a text box is selected).
CursorWordLeft Cursor to word left (only generates a KeyUp event, and only when a text box is selected).
CursorWordRight Cursor to word right (only generates a KeyUp event, and only when a text box is selected).
DeleteKey Delete key (only generates a KeyUp event, and only when a text box is selected).
CutText Cut text to clipboard.
CopyText Copy text to clipboard.
PasteText Paste text from clipboard.

You can add the above missing values to the enumeration with the following Lua code:


Adding missing enumeration values

-- Adding missing values to the Turbine.UI.Lotro.Action enumeration:
for key, value in pairs({
   
RightMouseButton = 19,
   
ToggleDebugHUD = 42,
   
ToggleDebugConsole = 43,
   
BackspaceKey = 99,
   
EnterKey = 162,
   
CursorPreviousLine = 29,
   
CursorCharRight = 108,
   
CursorCharLeft = 127,
   
CursorNextLine = 113,
   
CursorPreviousPage = 146,
   
CursorNextPage = 49,
   
CursorStartOfLine = 58,
   
CursorEndOfLine = 57,
   
CursorWordLeft = 163,
   
CursorWordRight = 37,
   
DeleteKey = 75,
   
CutText = 8,
   
CopyText = 170,
   
PasteText = 100,
}) do
   
if (Turbine.UI.Lotro.Action[key] == nil) then
      
Turbine.UI.Lotro.Action[key] = value;
   
end
end


Inert values

The following entries in the Turbine.UI.Lotro.Action enumeration apparently cannot be triggered. They may be outdated, or used internally by developers. In some cases, you can assign keys to them in lotro.keymap[1] and receive the KeyUp / KeyDown events, even though the client does nothing with them.

Name Description
SelectionNextFellow
SelectionOff
SelectionPreviousFellow
AutoLootAll
EnterChatMode
MainMenu
QuickSlot_Chat
SystemMenu
ToggleComboUI
ToggleCraftingProf1Panel
ToggleCraftingProf2Panel
ToggleCraftingProf3Panel
ToggleGambitPanel
ToggleHUD
ToggleInputPanel
ToggleMithrilCoinsAuctionUI
ToggleMithrilCoinsMenu
ToggleMountedXpUI
TogglePluginManagerUI
ToggleQuestJournal
ToggleStatusbarPanel
ToggleThreatTrackerPanel
ToggleToolbar
ToggleToolbarPanel
ToggleWorldJoin
Undefined

Remarks

Many of the actions only generate KeyUp or KeyDown events, not both.

Personal tools