Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Oct 17, 2023
1 parent fd463f0 commit e2ea308
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,8 @@ export default class DecisionTableEditorActions {
editorActions.register(actions);


debugger;
const searchPad = injector.get('searchPad', false);
if (selection && searchPad) {
if (searchPad) {
editorActions.register({
find() {
searchPad.toggle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ export default class Keyboard {

// search labels
// CTRL + F
debugger;
if (editorActions.isRegistered('find')) {
debugger;
this.addListener(function(_, event) {
if ([ 'f', 'F' ].includes(event.key) && isCmd(event)) {
editorActions.trigger('find');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ export function isCmd(modifiers) {
export function isShift(modifiers) {
return modifiers.shiftKey;
}

export function isKey(key, event) {
return event.key === key;
}
Loading

0 comments on commit e2ea308

Please sign in to comment.