Skip to content

Commit

Permalink
added import useKeyEventHandler
Browse files Browse the repository at this point in the history
(cherry picked from commit 726cc73)
  • Loading branch information
quantenschaum committed Jan 1, 2025
1 parent a24b837 commit 6216ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions viewer/components/SKWidgets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React from 'react';
import Formatter from "../util/formatter";
import PropTypes from "prop-types";
import {WidgetFrame, WidgetProps} from "./WidgetBase";
import {useKeyEventHandler} from "../util/GuiHelpers";

const rad2deg=(rad,inDeg)=>{
if (inDeg) return parseFloat(rad);
Expand Down
1 change: 1 addition & 0 deletions viewer/components/WindWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import keys from '../util/keys.jsx';
import navcompute from '../nav/navcompute.js';
import {WidgetFrame, WidgetHead, WidgetProps} from "./WidgetBase";
import Helper from '../util/helper.js';
import {useKeyEventHandler} from "../util/GuiHelpers";

export const getWindData=(props)=>{
let kind = props.kind;
Expand Down

0 comments on commit 6216ed6

Please sign in to comment.