mirror of https://github.com/stella-emu/stella.git
fixed unwanted input consuming
This commit is contained in:
parent
8a6c4eece2
commit
fc9490deca
|
@ -337,7 +337,7 @@ bool DataGridWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
||||||
{
|
{
|
||||||
// Ignore all mod keys
|
// Ignore all mod keys
|
||||||
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
|
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
bool dirty = false;
|
bool dirty = false;
|
||||||
|
|
|
@ -304,7 +304,7 @@ bool RomListWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
||||||
{
|
{
|
||||||
// Ignore all Alt-mod keys
|
// Ignore all Alt-mod keys
|
||||||
if(StellaModTest::isAlt(mod))
|
if(StellaModTest::isAlt(mod))
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
int oldSelectedItem = _selectedItem;
|
int oldSelectedItem = _selectedItem;
|
||||||
|
|
|
@ -92,7 +92,7 @@ bool ToggleWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
||||||
{
|
{
|
||||||
// Ignore all mod keys
|
// Ignore all mod keys
|
||||||
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
|
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
bool dirty = false, toggle = false;
|
bool dirty = false, toggle = false;
|
||||||
|
|
|
@ -277,7 +277,7 @@ bool EditableWidget::handleText(char text)
|
||||||
bool EditableWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
bool EditableWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
||||||
{
|
{
|
||||||
if(!_editable)
|
if(!_editable)
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
Event::Type event = instance().eventHandler().eventForKey(EventMode::kEditMode, key, mod);
|
Event::Type event = instance().eventHandler().eventForKey(EventMode::kEditMode, key, mod);
|
||||||
|
|
|
@ -280,7 +280,7 @@ bool ListWidget::handleKeyDown(StellaKey key, StellaMod mod)
|
||||||
{
|
{
|
||||||
// Ignore all Alt-mod keys
|
// Ignore all Alt-mod keys
|
||||||
if(StellaModTest::isAlt(mod))
|
if(StellaModTest::isAlt(mod))
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
if (!_editMode)
|
if (!_editMode)
|
||||||
|
|
Loading…
Reference in New Issue