mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Merge branch '1.0'
Conflicts: src/ui/manager.cpp
This commit is contained in:
commit
4920179143
@ -107,7 +107,7 @@ private:
|
||||
|
||||
void onAddAccel() {
|
||||
ui::Accelerator accel;
|
||||
SelectAccelerator window(accel, m_key->keycontext());
|
||||
SelectAccelerator window(accel, m_key ? m_key->keycontext(): KeyContext::Any);
|
||||
window.openWindowInForeground();
|
||||
|
||||
if (window.isModified()) {
|
||||
|
@ -127,6 +127,7 @@ void SelectAccelerator::onModifierChange(KeyModifiers modifier, CheckBox* checkb
|
||||
m_accel = Accelerator(modifiers, scancode, unicodeChar);
|
||||
|
||||
m_keyField->setAccel(m_accel);
|
||||
m_keyField->requestFocus();
|
||||
updateAssignedTo();
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ void key_poller_generate_events()
|
||||
key_repeated[c] = 0;
|
||||
}
|
||||
// Generate kKeyDownMessage messages for modifiers
|
||||
else if (c >= kKeyFirstModifierScancode) {
|
||||
else if (c >= kKeyFirstModifierScancode || c == kKeyCommand) {
|
||||
ev.setType(Event::KeyDown);
|
||||
ev.setScancode(scancode);
|
||||
ev.setUnicodeChar(::scancode_to_ascii(scancode));
|
||||
|
Loading…
x
Reference in New Issue
Block a user