File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/JuliusSweetland.OptiKey.Core/UI/ViewModels Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -355,9 +355,14 @@ private void ProcessBasicKeyValue(KeyValue singleKeyValue)
355355
356356 // Inject previous keyvalue if asked to repeat
357357 if ( singleKeyValue . FunctionKey != null &&
358- singleKeyValue . FunctionKey == FunctionKeys . RepeatLastKeyAction )
359- {
360- singleKeyValue = lastKeyValueExecuted ;
358+ singleKeyValue . FunctionKey == FunctionKeys . RepeatLastKeyAction &&
359+ SelectionMode == SelectionModes . Keys )
360+ {
361+ // We could consider allowing this to repeat the last mouse action, or
362+ // to repeat the original mouse-related key, but we're not sure how useful
363+ // it would be
364+ if ( ! lastMouseActionStateManager . LastMouseActionExists )
365+ singleKeyValue = lastKeyValueExecuted ;
361366 }
362367
363368 keyStateService . ProgressKeyDownState ( singleKeyValue ) ;
You can’t perform that action at this time.
0 commit comments