mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix some errors showing '&' char for the mnemonic text
This commit is contained in:
parent
94dcfa7f35
commit
0742dfad17
@ -336,7 +336,7 @@ brush_preview = Brush Preview:
|
||||
brush_preview_none = None
|
||||
brush_preview_edges = Brush Edges
|
||||
brush_preview_full = Full Real-time Brush Preview
|
||||
cursor_color_type = Crosshair & Brush Edges Color:
|
||||
cursor_color_type = Crosshair && Brush Edges Color:
|
||||
cursor_neg_bw = Negative Black and White
|
||||
cursor_specific_color = Specific Color
|
||||
bg_checked = Checked Background
|
||||
|
@ -39,6 +39,12 @@ FilterWindow::FilterWindow(const char* title, const char* cfgSection,
|
||||
, m_showPreview("&Preview")
|
||||
, m_tiledCheck(withTiled == WithTiledCheckBox ? new CheckBox("&Tiled") : NULL)
|
||||
{
|
||||
m_okButton.processMnemonicFromText();
|
||||
m_cancelButton.processMnemonicFromText();
|
||||
m_showPreview.processMnemonicFromText();
|
||||
if (m_tiledCheck)
|
||||
m_tiledCheck->processMnemonicFromText();
|
||||
|
||||
m_targetButton.setTarget(filterMgr->getTarget());
|
||||
m_targetButton.TargetChange.connect(&FilterWindow::onTargetButtonChange, this);
|
||||
m_okButton.Click.connect(&FilterWindow::onOk, this);
|
||||
|
@ -59,10 +59,8 @@ Console::Console(Context* ctx)
|
||||
TextBox* textbox = new TextBox("", WORDWRAP);
|
||||
Button* button = new Button("&Cancel");
|
||||
|
||||
if (!grid || !textbox || !button)
|
||||
return;
|
||||
|
||||
// The "button" closes the console
|
||||
button->processMnemonicFromText();
|
||||
button->Click.connect(base::Bind<void>(&Window::closeWindow, window, button));
|
||||
|
||||
view->attachToView(textbox);
|
||||
|
Loading…
Reference in New Issue
Block a user