Merge pull request #286 from ApertureSecurity/master
Added shortcut to just copy Address
This commit is contained in:
commit
fd845c97ac
|
@ -487,8 +487,10 @@ void CPUDisassembly::setupRightClickContextMenu()
|
|||
connect(mCopySelectionNoBytes, SIGNAL(triggered()), this, SLOT(copySelectionNoBytes()));
|
||||
|
||||
mCopyAddress = new QAction("&Address", this);
|
||||
mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
|
||||
this->addAction(mCopyAddress);
|
||||
connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddress()));
|
||||
|
||||
|
||||
mCopyDisassembly = new QAction("Disassembly", this);
|
||||
connect(mCopyDisassembly, SIGNAL(triggered()), this, SLOT(copyDisassembly()));
|
||||
|
||||
|
@ -582,6 +584,7 @@ void CPUDisassembly::refreshShortcutsSlot()
|
|||
mSearchPattern->setShortcut(ConfigShortcut("ActionFindPattern"));
|
||||
mEnableHighlightingMode->setShortcut(ConfigShortcut("ActionHighlightingMode"));
|
||||
mCopySelection->setShortcut(ConfigShortcut("ActionCopy"));
|
||||
mCopyAddress->setShortcut(ConfigShortcut("ActionCopyAddress"));
|
||||
mSearchCommand->setShortcut(ConfigShortcut("ActionFind"));
|
||||
}
|
||||
|
||||
|
|
|
@ -260,6 +260,7 @@ Configuration::Configuration() : QObject()
|
|||
defaultShortcuts.insert("ActionSetOneRegister", Shortcut(tr("Actions -> Set Register to One"), "1"));
|
||||
defaultShortcuts.insert("ActionToggleRegisterValue", Shortcut(tr("Actions -> Toggle Register Value"), "Space"));
|
||||
defaultShortcuts.insert("ActionCopy", Shortcut(tr("Actions -> Copy"), "Ctrl+C"));
|
||||
defaultShortcuts.insert("ActionCopyAddress", Shortcut(tr("Actions -> Copy Address"), "Alt+INS"));
|
||||
defaultShortcuts.insert("ActionCopySymbol", Shortcut(tr("Actions -> Copy Symbol"), "Ctrl+S"));
|
||||
defaultShortcuts.insert("ActionLoadScript", Shortcut(tr("Actions -> Load Script"), "Ctrl+O"));
|
||||
defaultShortcuts.insert("ActionReloadScript", Shortcut(tr("Actions -> Reload Script"), "Ctrl+R"));
|
||||
|
|
|
@ -6,4 +6,4 @@ copy ..\..\bin\%1\lib%1bridge.a Src\Bridge\
|
|||
if %ERRORLEVEL%==0 set result=0
|
||||
copy ..\..\bin\%1\%1bridge.lib Src\Bridge\
|
||||
if %ERRORLEVEL%==0 set result=0
|
||||
exit %result%
|
||||
exit %result%
|
||||
|
|
Loading…
Reference in New Issue