mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
The method of copying in the context help has been changed.
Для Linux для копирования выделеного текста нажать Ctrl+C это стандартное поведение элемента. Для Windows используется старый способ правая кнопка мыши.
This commit is contained in:
parent
4a5ae2b859
commit
1156992cc4
1 changed files with 7 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "wx/popupwin.h"
|
||||
#include <wx/html/htmlwin.h>
|
||||
#include "wx/clipbrd.h"
|
||||
#include <wx/clipbrd.h>
|
||||
#include "utils/FunctionPGHelper.h"
|
||||
#include <wx/regex.h>
|
||||
#include <map>
|
||||
|
|
@ -190,15 +190,15 @@ public:
|
|||
//wxString body = this->hhelper->getHelpString(name);
|
||||
wxString ctext = htmlWindow->SelectionToText();
|
||||
if (!ctext.IsEmpty()) {
|
||||
#ifdef __WXMSW__
|
||||
if (wxTheClipboard->Open())
|
||||
{
|
||||
wxDataObjectComposite* dataobj = new wxDataObjectComposite();
|
||||
dataobj->Add(new wxTextDataObject(ctext));
|
||||
//dataobj->Add(new wxHTMLDataObject(str));
|
||||
wxTheClipboard->SetData(dataobj);
|
||||
wxTheClipboard->Close();
|
||||
wxDataObjectComposite* dataobj = new wxDataObjectComposite();
|
||||
dataobj->Add(new wxTextDataObject(ctext));
|
||||
wxTheClipboard->SetData(dataobj);
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
|
||||
#endif
|
||||
wxString wname = GetParent()->GetName();
|
||||
if (wname == "frmStatus") {
|
||||
//CMD_EVENT_FIND_STR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue