@@ -63,17 +63,17 @@ void BleDev::clearWidgets()
6363
6464void BleDev::keyPressEvent (QKeyEvent *event)
6565{
66- if (event->key () == Qt::Key_Control )
66+ if (event->key () == Qt::Key_Shift )
6767 {
68- DeviceDetector::instance ().ctrlPressed ();
68+ DeviceDetector::instance ().shiftPressed ();
6969 }
7070}
7171
7272void BleDev::keyReleaseEvent (QKeyEvent *event)
7373{
74- if (event->key () == Qt::Key_Control )
74+ if (event->key () == Qt::Key_Shift )
7575 {
76- DeviceDetector::instance ().ctrlReleased ();
76+ DeviceDetector::instance ().shiftReleased ();
7777 }
7878}
7979
@@ -138,7 +138,7 @@ void BleDev::on_btnFileBrowser_clicked()
138138{
139139 if (wsClient->get_status () != Common::NoBundle &&
140140 (DeviceDetector::instance ().isConnectedWithBluetooth () ||
141- (DeviceDetector::instance ().getBattery () < MIN_BATTERY_PCT_FOR_UPLOAD && !DeviceDetector::instance ().isCtrlPressed ())))
141+ (DeviceDetector::instance ().getBattery () < MIN_BATTERY_PCT_FOR_UPLOAD && !DeviceDetector::instance ().isShiftPressed ())))
142142 {
143143 QMessageBox::warning (this , tr (" Battery too low for bundle upload" ),
144144 tr (" Please have your device connected through USB and fully charged" ));
@@ -150,7 +150,7 @@ void BleDev::on_btnFileBrowser_clicked()
150150 s.value (" last_used_path/bundle_dir" , QDir::homePath ()).toString (),
151151 " *.img" );
152152
153- DeviceDetector::instance ().ctrlReleased ();
153+ DeviceDetector::instance ().shiftReleased ();
154154
155155 if (fileName.isEmpty ())
156156 {
0 commit comments