fixed unwanted input consuming

This commit is contained in:
Thomas Jentzsch 2021-06-15 10:53:32 +02:00
parent 8a6c4eece2
commit fc9490deca
5 changed files with 5 additions and 5 deletions

View File

@ -337,7 +337,7 @@ bool DataGridWidget::handleKeyDown(StellaKey key, StellaMod mod)
{
// Ignore all mod keys
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
return true;
return false;
bool handled = true;
bool dirty = false;

View File

@ -304,7 +304,7 @@ bool RomListWidget::handleKeyDown(StellaKey key, StellaMod mod)
{
// Ignore all Alt-mod keys
if(StellaModTest::isAlt(mod))
return true;
return false;
bool handled = true;
int oldSelectedItem = _selectedItem;

View File

@ -92,7 +92,7 @@ bool ToggleWidget::handleKeyDown(StellaKey key, StellaMod mod)
{
// Ignore all mod keys
if(StellaModTest::isControl(mod) || StellaModTest::isAlt(mod))
return true;
return false;
bool handled = true;
bool dirty = false, toggle = false;

View File

@ -277,7 +277,7 @@ bool EditableWidget::handleText(char text)
bool EditableWidget::handleKeyDown(StellaKey key, StellaMod mod)
{
if(!_editable)
return true;
return false;
bool handled = true;
Event::Type event = instance().eventHandler().eventForKey(EventMode::kEditMode, key, mod);

View File

@ -280,7 +280,7 @@ bool ListWidget::handleKeyDown(StellaKey key, StellaMod mod)
{
// Ignore all Alt-mod keys
if(StellaModTest::isAlt(mod))
return true;
return false;
bool handled = true;
if (!_editMode)