Feature request: Add the ability to use keyboard shortcuts from the login panel, whether or not the login webpage is focused
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "llkeyboard.h"
|
||||
#include "llmarketplacefunctions.h"
|
||||
#include "llmediaentry.h"
|
||||
#include "llmenugl.h"
|
||||
#include "llmimetypes.h"
|
||||
#include "llmutelist.h"
|
||||
#include "llnotifications.h"
|
||||
@@ -2753,25 +2754,28 @@ bool LLViewerMediaImpl::handleKeyHere(KEY key, MASK mask)
|
||||
// Menu keys should be handled by the menu system and not passed to UI elements, but this is how LLTextEditor and LLLineEditor do it...
|
||||
if( MASK_CONTROL & mask )
|
||||
{
|
||||
if( 'C' == key )
|
||||
if('C' == key)
|
||||
{
|
||||
plugin->copy();
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
if( 'V' == key )
|
||||
else if('V' == key)
|
||||
{
|
||||
plugin->paste();
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
if( 'X' == key )
|
||||
else if('X' == key)
|
||||
{
|
||||
plugin->cut();
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Singu Note: At the very least, let's allow the login menu to function
|
||||
extern LLMenuBarGL* gLoginMenuBarView;
|
||||
if (gLoginMenuBarView && gLoginMenuBarView->getVisible() && gLoginMenuBarView->handleAcceleratorKey(key, mask))
|
||||
return true;
|
||||
|
||||
if(!result)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user